vhda / verilog_systemverilog.vim

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

Commas in strings break syntax highlighting #186

Closed Moguri closed 4 years ago

Moguri commented 4 years ago

When there is a comma in a string, syntax highlighting breaks for me. For example, this code:

string foo = "bar, baz";
int foo2 = 0;

renders as this:

sv_syntax_comma

This is with the latest master at the time of writing (b397068789f1844ef28e207a4efc03f157874f80).

Vim version info:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 16 2019 20:50:52)
Included patches: 1-207, 209-629
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
Huge version without GUI.  Features included (+) or not (-):
+acl             +cindent         +conceal         +digraphs        +farsi           +gettext         +libcall         +mksession       +mouse_netterm   -mzscheme        +profile         +scrollbind      +syntax          +textobjects     +visualextra     -X11
+arabic          -clientserver    +cryptv          -dnd             +file_in_path    -hangul_input    +linebreak       +modify_fname    +mouse_sgr       +netbeans_intg   +python/dyn      +signs           +tag_binary      +title           +viminfo         -xfontset
+autocmd         -clipboard       +cscope          -ebcdic          +find_in_path    +iconv           +lispindent      +mouse           -mouse_sysmouse  +path_extra      -python3         +smartindent     +tag_old_static  -toolbar         +vreplace        -xim
-balloon_eval    +cmdline_compl   +cursorbind      +emacs_tags      +float           +insert_expand   +listcmds        -mouseshape      +mouse_urxvt     +perl            +quickfix        -sniff           -tag_any_white   +user_commands   +wildignore      -xsmp
-browse          +cmdline_hist    +cursorshape     +eval            +folding         +jumplist        +localmap        +mouse_dec       +mouse_xterm     +persistent_undo +reltime         +startuptime     -tcl             +vertsplit       +wildmenu        -xterm_clipboard
++builtin_terms  +cmdline_info    +dialog_con      +ex_extra        -footer          +keymap          -lua             +mouse_gpm       +multi_byte      +postscript      +rightleft       +statusline      +terminfo        +virtualedit     +windows         -xterm_save
+byte_offset     +comments        +diff            +extra_search    +fork()          +langmap         +menu            -mouse_jsbterm   +multi_lang      +printer         -ruby            -sun_workshop    +termresponse    +visual          +writebackup     -xpm
vhda commented 4 years ago

Hi @Moguri,

Please confirm if the latest version fixes your issue. Thanks!

Moguri commented 4 years ago

I can confirm that the latest version fixes the issue. Thanks!