summaryrefslogtreecommitdiffstats
path: root/kate/data/css.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-01-09 00:24:34 +0100
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:22:36 +0100
commit5529b46d246d14c973bc13fe30b414b9bec7f7c0 (patch)
tree2503f2ed35d65e6bbb2b4ab1b280b0c7ce6a0ca1 /kate/data/css.xml
parenta929e576b23f51fef432252e0b70a24fd00b1ee6 (diff)
downloadtdelibs-5529b46d246d14c973bc13fe30b414b9bec7f7c0.tar.gz
tdelibs-5529b46d246d14c973bc13fe30b414b9bec7f7c0.zip
Update kate syntax highlight files
(cherry picked from commit bf4e405e03859bf383f55715944f4f71bd338c34)
Diffstat (limited to 'kate/data/css.xml')
-rw-r--r--kate/data/css.xml11
1 files changed, 8 insertions, 3 deletions
diff --git a/kate/data/css.xml b/kate/data/css.xml
index 02ab43036..d6a53c963 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])">
+]>
<!--
@@ -28,7 +33,7 @@
-->
-<language name="CSS" version="2.05" kateversion="2.4" section="Markup" extensions="*.css" indenter="cstyle"
+<language name="CSS" version="2.07" kateversion="2.5" section="Markup" extensions="*.css" indenter="cstyle"
mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<highlighting>
@@ -552,7 +557,7 @@
<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=":" />