| Summary: | Ruby syntax highlighting wrong for %-string in array, raise with class in module and symbol in method call for instance variable | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | Mykola Krachkovsky <w01dnick> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | walter.von.entferndt |
| Priority: | NOR | ||
| Version First Reported In: | 6.7.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/syntax-highlighting/-/commit/59a2eb1082a62f00c0b3898c6d28c464a16efbe3 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Ruby broken highlight cases | ||
|
Description
Mykola Krachkovsky
2024-11-05 09:01:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/703 Git commit 82049fcfebdcc9e560149ff2cbe54448b3b284ea by Christoph Cullmann, on behalf of Jonathan Poelen. Committed on 24/05/2025 at 16:19. Pushed by cullmann into branch 'master'. Ruby: fix %-string and regex in array ```rb a = [/regex/] a = [%(str)] # ^ not an operator ``` Related: bug 495349 M +2 -0 autotests/folding/highlight.rb.fold M +2 -0 autotests/html/highlight.rb.dark.html M +2 -0 autotests/html/highlight.rb.html M +2 -0 autotests/input/highlight.rb M +2 -0 autotests/reference/highlight.rb.ref M +3 -2 data/syntax/ruby.xml https://invent.kde.org/frameworks/syntax-highlighting/-/commit/82049fcfebdcc9e560149ff2cbe54448b3b284ea Git commit 841bfb53e2f8356da5ebd73b71bbb51fe12a0e98 by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 24/05/2025 at 16:19.
Pushed by cullmann into branch 'master'.
Ruby: fix operator after method call (expected unary operator or expression)
```rb
foo.bar /regex/
"abc".match /regex/
# ^ not an operator
foo.bar/10
"abc".length/10
# ^ operator (not preceded by space)
```
M +6 -1 autotests/folding/highlight.rb.fold
M +6 -1 autotests/html/highlight.rb.dark.html
M +6 -1 autotests/html/highlight.rb.html
M +6 -1 autotests/input/highlight.rb
M +6 -1 autotests/reference/highlight.rb.ref
M +26 -2 data/syntax/ruby.xml
https://invent.kde.org/frameworks/syntax-highlighting/-/commit/841bfb53e2f8356da5ebd73b71bbb51fe12a0e98
Git commit 59a2eb1082a62f00c0b3898c6d28c464a16efbe3 by Christoph Cullmann, on behalf of Jonathan Poelen. Committed on 24/05/2025 at 16:19. Pushed by cullmann into branch 'master'. Ruby: fix sub class after keyword / function ```rb raise Module::Class # ^ not a symbol, but # ~~ Operator # ~~~~~ Constant ``` M +2 -0 autotests/folding/highlight.rb.fold M +2 -0 autotests/html/highlight.rb.dark.html M +2 -0 autotests/html/highlight.rb.html M +2 -0 autotests/input/highlight.rb M +2 -0 autotests/reference/highlight.rb.ref M +18 -8 data/syntax/ruby.xml https://invent.kde.org/frameworks/syntax-highlighting/-/commit/59a2eb1082a62f00c0b3898c6d28c464a16efbe3 |