In JavaScript strings, you can use simple escapes like \n. Katepart syntax highlighting recognizes them. But katepart syntax highlighting ignored "unicode escapes" like \u0123 which makes referecne to a Unicode code point in hexadecimal notation. A solution/patch is attached. Reproducible: Always
Created attachment 92865 [details] javascript.xml
Hi, could you create a patch out of that? I think the version you based it on is already outdated, would make the application much easier ;=)
Yes, I can create a patch. Could you point me a link to the current version of javascript.xml, please? (I was searching for it on Git, but apparently I did not pick up the most recent version.)
http://quickgit.kde.org/?p=ktexteditor.git&a=blob&h=581cd5950c03fd6cedafaffd88f8d344d319d489&hb=a9f1d69e21c431b120c39969b2e1dba47d595638&f=src%2Fsyntax%2Fdata%2Fjavascript.xml
Created attachment 93096 [details] javascript.diff Patch against current version provided.
Created attachment 93097 [details] javascript.diff
Git commit 076de5273b29b818c3f9e8f1d1323d344581354c by Christoph Cullmann. Committed on 11/07/2015 at 14:11. Pushed by cullmann into branch 'master'. Bug 348317 - [PATCH] Katepart syntax highlighting should recognize \u0123 style escapes for JavaScript M +3 -1 src/syntax/data/javascript.xml http://commits.kde.org/ktexteditor/076de5273b29b818c3f9e8f1d1323d344581354c
Thanks for the patch!