Bug 352662

Summary: Change in syntax handling (at least for OCaml)
Product: [Applications] kate Reporter: Pierre-Marie Pédrot <pierre-marie.pedrot>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pierre-Marie Pédrot 2015-09-13 13:56:54 UTC
I have just upgraded Kate to KDE 5 on Debian (Kate version 15.08.0 + KDE Frameworks 5.13.0 + Qt 5.4.2) and the syntax highlighting of OCaml files is now totally messed up, although it seems that the XML description file has not changed.

For instance, the line

let id1 = foobar

is miscoloured as if "id" was an identifier and "1" a decimal number, which is wrong. The XML file does recognize identifiers containing integers though. This is quite annoying.


Reproducible: Always
Comment 1 Christoph Cullmann 2015-10-04 15:49:40 UTC
Git commit 5163bda00138f168473c50e456dc3337b368cd17 by Christoph Cullmann.
Committed on 04/10/2015 at 15:47.
Pushed by cullmann into branch 'master'.

fix regexps in HL files
PCRE compatible regex are not that compatible to the QRegExp we used before
improve the katehighlightingindexer to detect regexp errors
this fixes the ocaml HL

M  +11   -11   src/syntax/data/fsharp.xml
M  +4    -4    src/syntax/data/haskell.xml
M  +27   -10   src/syntax/data/katehighlightingindexer.cpp
M  +9    -9    src/syntax/data/mup.xml
M  +5    -5    src/syntax/data/ocaml.xml
M  +2    -2    src/syntax/data/ocamllex.xml
M  +3    -3    src/syntax/data/ocamlyacc.xml
M  +2    -2    src/syntax/data/perl.xml
M  +2    -2    src/syntax/data/rest.xml
M  +4    -4    src/syntax/data/roff.xml

http://commits.kde.org/ktexteditor/5163bda00138f168473c50e456dc3337b368cd17