summaryrefslogtreecommitdiffstats
path: root/kate/data/javascript-php.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-06-03 11:56:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-06-03 11:56:45 +0900
commit790fe12d34447ad8549fcb75acf05d056e6743c6 (patch)
tree073e5d03f35ee5a476ca361887b3f80b348a42de /kate/data/javascript-php.xml
parent668ae23f0693a330b241cfc62cde668a47d8654d (diff)
downloadtdelibs-790fe12d34447ad8549fcb75acf05d056e6743c6.tar.gz
tdelibs-790fe12d34447ad8549fcb75acf05d056e6743c6.zip
Kate syntax highlighting files update - Jun 2014
Diffstat (limited to 'kate/data/javascript-php.xml')
-rw-r--r--kate/data/javascript-php.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/kate/data/javascript-php.xml b/kate/data/javascript-php.xml
index d61b07663..a4ff01233 100644
--- a/kate/data/javascript-php.xml
+++ b/kate/data/javascript-php.xml
@@ -9,7 +9,7 @@
-<language name="JavaScript/PHP" hidden="true" version="1.22" kateversion="2.4" section="Other" extensions=""
+<language name="JavaScript/PHP" hidden="true" version="1.23" kateversion="2.4" section="Other" extensions=""
mimetype="" indenter="cstyle"
author="Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net)" license="">
<highlighting>
@@ -70,6 +70,18 @@
<item> undefined </item>
</list>
<contexts>
+
+ <!-- Shebang: ("#!") Detect shebang and fallthrough to Normal -->
+ <!-- Based on the similar clause from prolog.xml, which notes the following BUG:
+ If the file starts with whitespace and a shebang on a line other than the first line,
+ this rule will still match it as a shebang, even tough the shebang is only valid on
+ the very first line.
+ -->
+ <context name="Shebang" lineEndContext="Normal" attribute="Syntax Error" fallthrough="true" fallthroughContext="Normal" >
+<IncludeRules context="FindPHP" />
+ <Detect2Chars column="0" char="#" char1="!" context="Comment" attribute="Comment" />
+ </context>
+
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<IncludeRules context="FindPHP" />
<DetectSpaces/>