You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lexer correctly styles the \n for the standard heredoc as SCE_RB_HERE_Q but as SCE_RB_HERE_DELIM for the indented heredoc. This causes incorrect visuals when line ends are visible or an eolfilled style is specified. It also causes \r and \n to be styled differently causing problems with the automated tests.
In this example, the first item is a standard heredoc and the second is an indented heredoc because of the
-
although it is not actually indented.The content line is
X\n
orX\r\n
. Ruby defines that a heredocincludes the ending newline
.https://ruby-doc.org/core-2.3.1/doc/syntax/literals_rdoc.html#label-Here+Documents
The lexer correctly styles the
\n
for the standard heredoc asSCE_RB_HERE_Q
but asSCE_RB_HERE_DELIM
for the indented heredoc. This causes incorrect visuals when line ends are visible or aneolfilled
style is specified. It also causes\r
and\n
to be styled differently causing problems with the automated tests.This can be fixed with
The text was updated successfully, but these errors were encountered: