mawww / kakoune

mawww's experiment for a better code editor
http://kakoune.org
The Unlicense
9.99k stars 715 forks source link

Fixed eruby highlighter marking everything as string in ERB files #5213

Closed ericv8v9s closed 3 months ago

ericv8v9s commented 3 months ago

It seems the ref highlighter sees the opening and closing delimiters as well. This causes problems with the <%= ... %> syntax in ERB files because ruby strings can be delimited with % then any character, so it sees %= as starting a string.

Making <% a look-behind match seems to fix this.