We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current code fails for following ruby code (from https://docs.ruby-lang.org/en/master/syntax/literals_rdoc.html#label-25w+and+-25W-3A+String-Array+Literals)
%W(#{1 + 1})
Which seems can be fixed with this change (remove else)
else
diff --git a/lexers/LexRuby.cxx b/lexers/LexRuby.cxx index af585756..96e32a5f 100644 --- a/lexers/LexRuby.cxx +++ b/lexers/LexRuby.cxx @@ -1895,7 +1895,8 @@ static void FoldRbDoc(Sci_PositionU startPos, Sci_Position length, int initStyle } else if (style == SCE_RB_STRING_QW) { if (stylePrev != style) { levelCurrent++; - } else if (styleNext != style) { + } + if (styleNext != style) { levelCurrent--; } }
The text was updated successfully, but these errors were encountered:
To clarify, it is the end character ) that is causing the problem since it transitions both to and from SCE_RB_STRING_QW.
)
SCE_RB_STRING_QW
The intention of the SCE_RB_STRING_QW case is to fold multiline array literals like this example.
keywords = %w[ __FILE__ and def end in or self unless __LINE__ begin defined? ensure module redo super until BEGIN break do false next rescue then when END case else for nil retry true while alias class elsif if not return undef yield ] puts(keywords.join('|'))
Sorry, something went wrong.
#132 Fix additional fold level for single character in SCE_RB_STRING_QW.
d2dd925
Included in 5.2.3.
No branches or pull requests
Current code fails for following ruby code (from https://docs.ruby-lang.org/en/master/syntax/literals_rdoc.html#label-25w+and+-25W-3A+String-Array+Literals)
Which seems can be fixed with this change (remove
else
)The text was updated successfully, but these errors were encountered: