Bug 324206

Summary: JavaScript syntax highlighting breaks with division of object properties
Product: [Applications] kate Reporter: Samu Juvonen <samu.juvonen>
Component: syntaxAssignee: 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

Description Samu Juvonen 2013-08-29 08:59:56 UTC
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.
Comment 1 Christoph Feck 2013-08-29 10:51:01 UTC

*** This bug has been marked as a duplicate of bug 321859 ***