Summary: | JavaScript syntax highlighting breaks with division of object properties | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Samu Juvonen <samu.juvonen> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.11.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Messed up syntax colors in Kwrite |
*** This bug has been marked as a duplicate of bug 321859 *** |
Created attachment 82005 [details] Messed up syntax colors in Kwrite The JS syntax highlighter breaks up with basic calculus when an object's property is being divided. The bug seems to trigger when a dot-separated variable name and a forward slash are used in the same expression. Syntax colors are messed up after the slash - the text after it is mostly green - and the bug affects even later text lines and expressions There is a way to work around this, though: the bug will not trigger if there is no leading space before the slash character.