single quotes treated as string in syntax highlighting

Issue #129 invalid
Anonymous created an issue

Single quotes are treated as a string when they used for type casting or unpacked array assignments.

for example:

// remainder of file after void' is treated as a string
void'(uvm_reg_block::find_blocks("ABC*", blks, rm_h));

// remainder of file after '{ is treated as a string
int unsigned widths[string] = '{
       "TX_FLIT_BUF"           :130,
       "RETRY_RAM_LG"          :130
};

Comments (3)

  1. bt04

    You're right, I had both the Verilog and SystemVerilog plugins installed. Since they both were associated with sv files, the syntax highlighting would switch to the Verilog plugin without realizing it. Problem goes away after uninstalling the Verilog package.

    Thanks!

  2. Log in to comment