summaryrefslogtreecommitdiffstats
path: root/kate/data/css-php.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-03-03 00:41:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-03-03 00:41:25 +0900
commitbb647dca1516a45ce18f2e040bd20528f588e2fe (patch)
tree0fe5d9a19e884335a14fdf9741f772b2474df43e /kate/data/css-php.xml
parenta7e4c6b5e7916d924c2a9b75a10e427b556b8d65 (diff)
downloadtdelibs-bb647dca1516a45ce18f2e040bd20528f588e2fe.tar.gz
tdelibs-bb647dca1516a45ce18f2e040bd20528f588e2fe.zip
Kate syntax highlighting files update - Feb 2014
Diffstat (limited to 'kate/data/css-php.xml')
-rw-r--r--kate/data/css-php.xml100
1 files changed, 97 insertions, 3 deletions
diff --git a/kate/data/css-php.xml b/kate/data/css-php.xml
index 3be8ab76a..8fd82afc0 100644
--- a/kate/data/css-php.xml
+++ b/kate/data/css-php.xml
@@ -13,6 +13,9 @@ Changelog:
- Version 2.03, by Milian Wolff:
- Make it spelling aware
+- Version 2.08, Joseph Wenninger:
+- CSS3 media queries
+
-->
@@ -21,7 +24,7 @@ Changelog:
-<language name="CSS/PHP" hidden="true" version="2.08" kateversion="2.5" section="Other" extensions="" indenter="cstyle" mimetype="" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
+<language name="CSS/PHP" hidden="true" version="2.08" kateversion="2.4" section="Other" extensions="" indenter="cstyle" mimetype="" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<highlighting>
<list name="properties">
@@ -628,10 +631,52 @@ Changelog:
<item> print </item>
<item> projection </item>
<item> screen </item>
+ <item> speech </item>
<item> tty </item>
<item> tv </item>
</list>
+ <list name="mediatypes_op">
+ <item> not </item>
+ <item> only </item>
+ </list>
+
+ <list name="media_features">
+ <item> width </item>
+ <item> min-width </item>
+ <item> max-width</item>
+ <item> height </item>
+ <item> min-height </item>
+ <item> max-height </item>
+ <item> device-width </item>
+ <item> min-device-width </item>
+ <item> max-device-width </item>
+ <item> device-height </item>
+ <item> min-device-height </item>
+ <item> max-device-height </item>
+ <item> orientation </item>
+ <item> aspect-ratio </item>
+ <item> min-aspect-ratio </item>
+ <item> max-aspect-ratio </item>
+ <item> device-aspect-ratio </item>
+ <item> min-device-aspect-ratio </item>
+ <item> max-device-aspect-ratio </item>
+ <item> color </item>
+ <item> min-color </item>
+ <item> max-color </item>
+ <item> color-index </item>
+ <item> min-color-index </item>
+ <item> max-color-index </item>
+ <item> monochrome </item>
+ <item> min-monochrome </item>
+ <item> max-monochrome </item>
+ <item> resolution </item>
+ <item> min-resolution </item>
+ <item> max-resolution </item>
+ <item> scan </item>
+ <item> grid </item>
+ </list>
+
<list name="pseudoclasses">
<item> hover </item>
<item> link </item>
@@ -716,11 +761,60 @@ Changelog:
<context attribute="Normal Text" lineEndContext="#stay" name="Media">
<IncludeRules context="FindPHP" />
<DetectChar attribute="Media" context="Media2" char="{" beginRegion="media" />
- <keyword attribute="Media" context="#stay" String="mediatypes" />
+ <DetectChar attribute="Media" context="MediaQueryExpression" char="(" />
+ <keyword attribute="Media" context="MediaQueries" String="mediatypes"/>
+ <keyword attribute="Media" context="MediaTypes" String="mediatypes_op" />
<DetectChar attribute="Media" context="#stay" char="," />
<IncludeRules context="FindComments" />
<RegExpr attribute="Error" context="#stay" String="\S+" />
</context>
+
+ <context attribute="Media" lineEndContext="#stay" name="MediaTypes">
+<IncludeRules context="FindPHP" />
+ <keyword attribute="Media" context="MediaQueries" String="mediatypes"/>
+ <DetectChar attribute="Media" context="#pop" char= "{" lookAhead="true"/>
+ <DetectChar attribute="Media" context="#pop" char= "," lookAhead="true"/>
+ <DetectSpaces/>
+ <IncludeRules context="FindComments"/>
+ <RegExpr attribute="Error" context="#stay" String="\S+"/>
+ </context>
+
+ <context attribute="Media" lineEndContext="#stay" name="MediaQueries">
+<IncludeRules context="FindPHP" />
+ <RegExpr attribute="Media" context="MediaQueryExpression" String="\s+and\s+\("/>
+ <DetectChar attribute="Media" context="#pop" char= "{" lookAhead="true"/>
+ <DetectChar attribute="Media" context="#pop" char= "," lookAhead="true"/>
+ <DetectSpaces/>
+ <IncludeRules context="FindComments"/>
+ <RegExpr attribute="Error" context="#stay" String="\S+"/>
+ </context>
+
+ <context attribute="Media" lineEndContext="#stay" name="MediaQueryExpression">
+<IncludeRules context="FindPHP" />
+ <DetectSpaces/>
+ <keyword attribute="Media" context="MQEE" String="media_features"/>
+ <IncludeRules context="FindComments"/>
+ <RegExpr attribute="Error" context="#stay" String="\S+"/>
+ </context>
+
+ <context attribute="Media" lineEndContext="#stay" name="MQEE" fallthrough="true" fallthroughContext="#pop">
+<IncludeRules context="FindPHP" />
+ <DetectSpaces/>
+ <IncludeRules context="FindComments"/>
+ <DetectChar attribute="Media" context="MQEV" char=":"/>
+ <RegExpr attribute="Media" context="#pop" String="\)\s+and\s+\("/>
+ <DetectChar attribute="Media" context="#pop#pop" char=")"/>
+ </context>
+
+ <context attribute="Media" lineEndContext="#stay" name="MQEV">
+<IncludeRules context="FindPHP" />
+ <!-- this should be seperate for different features, for now it is all the same -->
+ <RegExpr attribute="Value" context="#pop" String="[1-9][0-9.]*\s*/\s*[1-9][0-9.]*" />
+ <RegExpr attribute="Value" context="#pop" String="[0-9.]+(em|ex|ch|rem|vw|vh|vm|px|in|cm|mm|pt|pc|deg|rad|grad|turn|ms|s|Hz|kHz|dpi|dpcm)\b" />
+ <RegExpr attribute="Value" context="#pop" String="[0-9.]+[%]?" />
+ <RegExpr attribute="Value" context="#pop" String="(portrait|landscape)" />
+ <RegExpr attribute="Error" context="#stay" String=".*"/>
+ </context>
<context attribute="Normal Text" lineEndContext="#stay" name="Media2">
<IncludeRules context="FindPHP" />
@@ -840,7 +934,6 @@ Changelog:
<itemData name="Selector Pseudo" defStyleNum="dsDecVal" spellChecking="false"/>
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
- <itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/>
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
</itemDatas>
</highlighting>
@@ -852,4 +945,5 @@ Changelog:
</general>
</language>
+
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->