diff options
Diffstat (limited to 'kate/data/css-php.xml')
-rw-r--r-- | kate/data/css-php.xml | 100 |
1 files changed, 97 insertions, 3 deletions
diff --git a/kate/data/css-php.xml b/kate/data/css-php.xml index 562f9512c..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.07" 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 ***** --> |