Community
    • Login

    Bug in VHDL color coding

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 1 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Andrey AshA
      Andrey Ash
      last edited by

      The following code would not always get proper color coding. Usually it would pick an end of any line in the generic description, i.e. after the “&” sign, and after that line no code will be color coded. When one enters any character at that line, the color coding comes back. This bug comes back when scrolling around. Below is the code example.

      ----------------------------------------------------------------
      -- Comment
      test_inst : entity work.test_top
          generic map
          (
              co_cfg_filename =>
              -- synthesis translate_off
              "$PRJ_DIR\rtl\test\"&
              -- synthesis translate_on
              "ram_init.mif",
              bp_mem_cfg_filename => 
              -- synthesis translate_off
              "$PRJ_DIR\rtl\test\"&
              -- synthesis translate_on
              "bram_init.mif",
              mi_mem_cfg_filename =>
              -- synthesis translate_off
              "$PRJ_DIR\rtl\test\"&
              -- synthesis translate_on
              "mram_init.mif",
              c_mem_cfg_filename => 
              -- synthesis translate_off
              "$PRJ_DIR\rtl\test\"&
              -- synthesis translate_on
              "cram_init.mif"
          )
          port map
          (
              rst_in => rst,
              clk_in => clk_in,
              test_out_ram_wea => test_out_ram_wea,
              test_out_ram_addra => test_out_ram_addra,
              test_out_ram_dina => test_out_ram_dina,
              ram_douta => ram_douta
          );
      
      1 Reply Last reply Reply Quote 0
      • Andrey AshA
        Andrey Ash
        last edited by

        You can actually see wrong color coding in the example here also, it thinks the last “-- synthesis translate_on” comment continues forever, which is not the case.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors