[bugs:#2126] LexRuby bug on ternary operator and regex
Status: open
Group: Bug
Labels: lexer
Created: Fri Sep 06, 2019 11:39 PM UTC by Zufu Liu
Last Updated: Fri Sep 06, 2019 11:39 PM UTC
Owner: nobody
Originally reported at https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6130
the following equivalent lines are incorrectly colored:
x = foo ? /.*/ : bar x = foo ?/.*/:bar
In both lines, regex is colored as if started from second slash. In second line, ?/ is colored as number (based on source comment "It's the start of a character code escape sequence").
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
These lines also not correctly colored:
x = foo ? /w+/ : /.*/ x = foo ? bar : /.*/ # valid? x = foo ? bar :/.*/
[bugs:#2126] LexRuby bug on ternary operator and regex
Status: open
Group: Bug
Labels: lexer ruby
Created: Fri Sep 06, 2019 11:39 PM UTC by Zufu Liu
Last Updated: Sat Sep 07, 2019 01:02 AM UTC
Owner: nobody
[bugs:#2126] LexRuby bug on ternary operator and regex
Status: open-accepted
Group: Bug
Labels: lexer ruby
Created: Fri Sep 06, 2019 11:39 PM UTC by Zufu Liu
Last Updated: Thu Sep 26, 2019 02:54 AM UTC
Owner: nobody
Same as [bugs:#1927].
[bugs:#2126] LexRuby bug on ternary operator and regex
Status: open-duplicate
Group: Bug
Labels: lexer ruby
Created: Fri Sep 06, 2019 11:39 PM UTC by Zufu Liu
Last Updated: Mon Sep 30, 2019 10:26 PM UTC
Owner: nobody
The duplicate [bugs:#1927] was closed so closing this.
[bugs:#2126] LexRuby bug on ternary operator and regex
Status: closed-duplicate
Group: Bug
Labels: lexer ruby
Created: Fri Sep 06, 2019 11:39 PM UTC by Zufu Liu
Last Updated: Fri Mar 25, 2022 01:40 PM UTC
Owner: nobody