Skip to content
New issue

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

[Ruby] fix number.method highlighting #225

Closed
zufuliu opened this issue Jan 13, 2024 · 0 comments
Closed

[Ruby] fix number.method highlighting #225

zufuliu opened this issue Jan 13, 2024 · 0 comments
Labels
committed Issue fixed in repository but not in release ruby Caused by the ruby lexer

Comments

@zufuliu
Copy link
Contributor

zufuliu commented Jan 13, 2024

Currently, when number has no dot (integer or complex), method is colored as fractional part of float literal.
Ruby-number-0114.patch

Removed numDots check, it's not required after check chNext, and trailing dot is used for method invoke.

test case:

# Float Literals
12.34
1234e-2
1.234E1
# Range Literals
(1..2)
(2.0..3)
# method
1.5.ceil
1ri.abs
3.times {|i| puts i}
3. times {|i| puts i}
zufuliu added a commit to zufuliu/notepad4 that referenced this issue Jan 13, 2024
@nyamatongwe nyamatongwe added the ruby Caused by the ruby lexer label Jan 14, 2024
nyamatongwe pushed a commit that referenced this issue Jan 16, 2024
…'.' and method

name do not appear in numeric style.
@nyamatongwe nyamatongwe added the committed Issue fixed in repository but not in release label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
committed Issue fixed in repository but not in release ruby Caused by the ruby lexer
Projects
None yet
Development

No branches or pull requests

2 participants