[scintilla:bugs] #2126 LexRuby bug on ternary operator and regex

2 views
Skip to first unread message

Zufu Liu

unread,
Sep 6, 2019, 7:39:21 PM9/6/19
to scintill...@googlegroups.com

[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.

Zufu Liu

unread,
Sep 6, 2019, 9:02:22 PM9/6/19
to scintill...@googlegroups.com

These lines also not correctly colored:

x = foo ? /w+/ : /.*/
x = foo ? bar : /.*/

# valid?
x = foo ? bar :/.*/

Neil Hodgson

unread,
Sep 25, 2019, 10:54:10 PM9/25/19
to scintill...@googlegroups.com
  • labels: lexer --> lexer, ruby

[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

Neil Hodgson

unread,
Sep 30, 2019, 6:26:35 PM9/30/19
to scintill...@googlegroups.com
  • status: open --> open-accepted

[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

Zufu Liu

unread,
Mar 25, 2022, 9:40:51 AM3/25/22
to scintill...@googlegroups.com
  • status: open-accepted --> open-duplicate
  • Comment:

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

Neil Hodgson

unread,
Jul 5, 2026, 9:59:46 PMJul 5
to scintill...@googlegroups.com
  • status: open-duplicate --> closed-duplicate
  • Comment:

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

Reply all
Reply to author
Forward
0 new messages