Skip to content

Commit

Permalink
[Ruby] Allow modifier if, unless, while and until after heredoc delim…
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Apr 9, 2024
1 parent 7d99861 commit d1a0f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scintilla/lexers/LexRuby.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ bool sureThisIsNotHeredoc(Sci_Position lt2StartPos, LexAccessor &styler) {
return definitely_not_a_here_doc;
} else {
const char ch = styler[j];
if (ch == '#' || IsEOLChar(ch) || ch == '.' || ch == ',') {
if (ch == '#' || IsEOLChar(ch) || ch == '.' || ch == ',' || IsLowerCase(ch)) {
// This is OK, so break and continue;
break;
} else {
Expand Down

0 comments on commit d1a0f69

Please sign in to comment.