summaryrefslogtreecommitdiffstats
path: root/kate/data/css.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-07-28 19:12:40 +0900
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:22:46 +0100
commitaaa5afedcdca81a36c23dbcdd596c72f4c9192b9 (patch)
tree694b250c3613cdd2e88551a43267ca12ddfe90c0 /kate/data/css.xml
parente6f29b0111c8f6e3de8dec06d23063d3d5668203 (diff)
downloadtdelibs-aaa5afedcdca81a36c23dbcdd596c72f4c9192b9.tar.gz
tdelibs-aaa5afedcdca81a36c23dbcdd596c72f4c9192b9.zip
Kate syntax highlighting files update - Jul 2014
(cherry picked from commit aa18c1556b6e122f4b414639cf091e1e3848b974)
Diffstat (limited to 'kate/data/css.xml')
-rw-r--r--kate/data/css.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/kate/data/css.xml b/kate/data/css.xml
index 6f274bb50..a8502e6b7 100644
--- a/kate/data/css.xml
+++ b/kate/data/css.xml
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE language SYSTEM "language.dtd">
+<!DOCTYPE language SYSTEM "language.dtd"
+[
+ <!-- http://www.w3.org/TR/CSS21/syndata.html#tokenization -->
+ <!ENTITY nmstart "[_a-zA-Z]|(\\[0-9a-fA-F]{1,6})|(\\[^\n\r\f0-9a-fA-F])">
+ <!ENTITY nmchar "[_a-zA-Z0-9-]|(\\[0-9a-fA-F]{1,6})|(\\[^\n\r\f0-9a-fA-F])">
+]>
<!--
@@ -18,7 +23,7 @@ Changelog:
-->
-<language name="CSS" version="2.08" kateversion="2.4" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
+<language name="CSS" version="2.09" kateversion="2.4" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<highlighting>
<list name="properties">
@@ -718,7 +723,7 @@ Changelog:
<DetectChar attribute="Property" context="RuleSet" char="{" beginRegion="ruleset" />
<!--parse selectors-->
<DetectChar attribute="Selector Attr" context="SelAttr" char="[" />
- <RegExpr attribute="Selector Id" context="#stay" String="#([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
+ <RegExpr attribute="Selector Id" context="#stay" String="#(-)?(&nmstart;)(&nmchar;)*" />
<RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
<RegExpr attribute="Selector Pseudo" context="#stay" String=":lang\([\w_-]+\)" />
<DetectChar attribute="Selector Pseudo" context="SelPseudo" char=":" />
@@ -792,6 +797,7 @@ Changelog:
<context attribute="Media" lineEndContext="#stay" name="MQEV">
<!-- this should be seperate for different features, for now it is all the same -->
+ <DetectSpaces/>
<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.]+[%]?" />