vhda / verilog_systemverilog.vim

Verilog/SystemVerilog Syntax and Omni-completion
366 stars 89 forks source link

Optimize syntax according to file extension #154

Open vhda opened 6 years ago

vhda commented 6 years ago

Consider the possibility of only loading SystemVerilog syntax when the buffer's file name extension is .sv, .svi, .svh or .svp. Do the same for Verilog AMS using the relevant extensions.

While this should improve the syntax performance, it does so at the cost of making the code much more complex. It would also make sense to include a global variable to control this behaviour, adding more complexity to the code that can eventually negate this performance improvement.

Check #147 for more information.