@@ -56,9 +56,20 @@ let s:syng_string =
5656let s: syng_stringdoc = s: syng_string + [' Documentation' ]
5757
5858" Syntax group names that are or delimit strings/symbols/regexes or are comments.
59- let s: syng_strcom = s: syng_stringdoc +
60- \ [' Regexp' , ' RegexpDelimiter' , ' RegexpEscape' ,
61- \ ' Symbol' , ' StringDelimiter' , ' Character' , ' Comment' ]
59+ let s: syng_strcom = s: syng_stringdoc + [
60+ \ ' Character' ,
61+ \ ' Comment'
62+ \ ' HeredocDelimiter' ,
63+ \ ' PercentRegexpDelimiter' ,
64+ \ ' PercentStringDelimiter' ,
65+ \ ' PercentSymbolDelimiter' ,
66+ \ ' Regexp' ,
67+ \ ' RegexpDelimiter' ,
68+ \ ' RegexpEscape' ,
69+ \ ' StringDelimiter' ,
70+ \ ' Symbol' ,
71+ \ ' SymbolDelimiter' ,
72+ \ ]
6273
6374" Expression used to check whether we should skip a match with searchpair().
6475let s: skip_expr =
@@ -694,7 +705,10 @@ endfunction
694705
695706" Check if the character at lnum:col is inside a string delimiter
696707function ! s: IsInStringDelimiter (lnum, col ) abort
697- return s: IsInRubyGroup ([' StringDelimiter' ], a: lnum , a: col )
708+ return s: IsInRubyGroup (
709+ \ [' HeredocDelimiter' , ' PercentStringDelimiter' , ' StringDelimiter' ],
710+ \ a: lnum , a: col
711+ \ )
698712endfunction
699713
700714function ! s: IsAssignment (str, pos) abort
0 commit comments