diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-06-03 11:56:45 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-06-03 11:56:45 +0900 |
commit | 790fe12d34447ad8549fcb75acf05d056e6743c6 (patch) | |
tree | 073e5d03f35ee5a476ca361887b3f80b348a42de /kate/data/javascript-php.xml | |
parent | 668ae23f0693a330b241cfc62cde668a47d8654d (diff) | |
download | tdelibs-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.xml | 14 |
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/> |