This is a prime example for using the begin
and end
syntax with the repository. Try using this
patterns:
- begin: \"
end: \"
beginCaptures:
'0': { name: string.quotes.fave }
endCaptures:
'0': { name: string.quotes.fave }
contentName: punctuation.definition.string.fave
patterns:
- include: '#escaped_char'
With the repository
repository:
escaped_char:
match: '\\.'
name: escape.fave
Tried to replicate your color theme. With the above, I got this:
Sorry for reviving a zombie post.