Menu

#1057 Ruby lexer inline condition

Bug
open-duplicate
3
2023-02-17
2010-10-30
Anonymous
No

In Ruby we can obtain ascii value of chars by writing ?char (colored with number color I think)
And we have symbols written :symbol
If we write an inline condition like that : condition ? expr1 : expr2
all is right, but if we remove the spaces : condition ?expr1:expr2
Ruby handle it correctly but expr1 is in number color and expr2 in symbol color.
It may cause many colors problem when using a string instead of expr1.

I already know nyamatongwe is not interested in Ruby so if someone... :P

Discussion

  • Neil Hodgson

    Neil Hodgson - 2010-10-30
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 3
    • status: open --> open-accepted
     
  • Zufu Liu

    Zufu Liu - 2022-04-05
     
  • Zufu Liu

    Zufu Liu - 2022-04-09
    • labels: Scintilla --> Scintilla, ruby
     
  • Zufu Liu

    Zufu Liu - 2023-02-17
    • status: open-accepted --> open-duplicate
     
  • Zufu Liu

    Zufu Liu - 2023-02-17

    Duplicate of [bugs:#1927] (ternary operator).

     

    Related

    Bugs: #1927


Log in to post a comment.

MongoDB Logo MongoDB