diff --git a/syntax/nim.vim b/syntax/nim.vim index 9b08cf2..eb015dc 100644 --- a/syntax/nim.vim +++ b/syntax/nim.vim @@ -70,9 +70,9 @@ syn keyword nimBoolean true false " Strings +syn region nimPragmaSection start=+{\.+ skip=+\\\\\|\\`\|\\$+ excludenl end=+\.}+ end=+$+ keepend contains=nimEscape,nimEscapeError,@Spell,nimPragma syn region nimString start=+'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=nimEscape,nimEscapeError,@Spell syn region nimFunction start=+`+ skip=+\\\\\|\\`\|\\$+ excludenl end=+`+ end=+$+ keepend contains=nimEscape,nimEscapeError,@Spell -syn region nimPragmaSection start=+{.+ skip=+\\\\\|\\`\|\\$+ excludenl end=+.}+ end=+$+ keepend contains=nimEscape,nimEscapeError,@Spell,nimPragma syn region nimString start=+"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=nimEscape,nimEscapeError,@Spell syn region nimString start=+"""+ end=+"""+ keepend contains=nimEscape,nimEscapeError,@Spell syn region nimRawString matchgroup=Normal start=+[rR]"+ end=+"+ skip=+\\\\\|\\"+ contains=@Spell