1
0
Fork 0

Adds support for raw strings

This commit is contained in:
sloum 2022-10-17 15:16:44 -07:00
parent a47b8cccf5
commit a6e7a1c834
1 changed files with 3 additions and 0 deletions

View File

@ -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