vhda / verilog_systemverilog.vim

Verilog/SystemVerilog Syntax and Omni-completion
360 stars 87 forks source link

the keyword endmodule is not highlight #187

Closed puxiancheng closed 4 years ago

puxiancheng commented 4 years ago

when i open a .v file though vim, i type G go to the end of the file, the keyword endmodule is not highlight. if i type ctrl+f go to the end of the file, the keyword endmodule is highlight.

vhda commented 4 years ago

Hi @puxiancheng,

Please try adding the following to your vimrc:

autocmd FileType verilog_systemverilog syntax sync fromstart

This will make vim always defines syntax by parsing the complete file. Unfortunately, I expect that this will make the syntax parsing slower because it has to parse more items. But test to see if it becomes too slow or not.

puxiancheng commented 4 years ago

thanks!!! it works, and it does not become too slow.