summaryrefslogtreecommitdiffstats
path: root/kate/data/javascript.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/javascript.xml')
-rw-r--r--kate/data/javascript.xml9
1 files changed, 3 insertions, 6 deletions
diff --git a/kate/data/javascript.xml b/kate/data/javascript.xml
index 71d18fb94..260aa721a 100644
--- a/kate/data/javascript.xml
+++ b/kate/data/javascript.xml
@@ -3,7 +3,7 @@
<!-- Author: Anders Lund <anders@alweb.dk> //-->
<!-- Minor changes: Joseph Wenninger <jowenn@kde.org> //-->
<!-- Full JavaScript 1.0 support by Whitehawk Stormchaser //-->
-<language name="JavaScript" version="1.23" kateversion="2.5" section="Scripts" extensions="*.js;*.kwinscript"
+<language name="JavaScript" version="1.22" kateversion="2.4" section="Scripts" extensions="*.js;*.kwinscript"
mimetype="text/x-javascript;application/x-javascript" indenter="cstyle"
author="Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net)" license="">
<highlighting>
@@ -102,16 +102,13 @@
<AnyChar attribute="Symbol" String=":!%&amp;+,-/.*&lt;=&gt;?|~^&#59;" />
</context>
- <context attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop" name="Object Member">
+ <context attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop" name="Object Member">
<DetectChar char="." />
<!--DetectIdentifier-->
<RegExpr attribute="Objects" context="Object Member" String="[a-zA-Z_$][\w$]*(?=\s*\.)" />
<!--DetectIdentifier-->
<RegExpr attribute="Object Member" String="[a-zA-Z_$][\w$]*" />
- <!-- NoRegExp without DetectSpaces. TODO: code reuse without detecting spaces as object member? -->
- <Detect2Chars context="#pop" lookAhead="true" char="/" char1="/" />
- <Detect2Chars context="#pop" lookAhead="true" char="/" char1="*" />
- <DetectChar context="#pop" char="/" />
+ <IncludeRules context="NoRegExp" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop" name="NoRegExp">