Bug in VHDL color coding
-
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 ); -
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login