Adds support for raw strings
This commit is contained in:
parent
a47b8cccf5
commit
a6e7a1c834
|
@ -34,6 +34,8 @@ syn match slopeEscape /\\\h\{1}/ contained
|
|||
|
||||
" slope strings
|
||||
syn region slopeString start=/\v"/ skip=/\v\\./ end=/\v"/ contains=slopeEscape
|
||||
syn region slopeRawString start=+`+ end=+`+
|
||||
|
||||
|
||||
" catch errors caused by wrong parenthesis and brackets
|
||||
syn cluster slopeAll contains=slopeRegion,slopeDelim,slopeFunction,slopeVariable,slopeComment,slopeParenError,slopeSpecial,slopeNumber,slopeClause,slopeCommand,slopeString,slopeEscape,slopeBool
|
||||
|
@ -121,6 +123,7 @@ if version >= 508 || !exists("did_slope_syntax_inits")
|
|||
HiLink slopeNumber Number
|
||||
HiLink slopeSpecial Constant
|
||||
HiLink slopeString String
|
||||
HiLink slopeRawString String
|
||||
HiLink slopeBool Boolean
|
||||
HiLink slopeCommand Statement
|
||||
HiLink slopeParenError Error
|
||||
|
|
Loading…
Reference in New Issue