Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/css.xml
Show All 32 Lines | |||||
33 | - Version 2.03, by Milian Wolff: | 33 | - Version 2.03, by Milian Wolff: | ||
34 | - Make it spelling aware | 34 | - Make it spelling aware | ||
35 | 35 | | |||
36 | - Version 2.08, Joseph Wenninger: | 36 | - Version 2.08, Joseph Wenninger: | ||
37 | - CSS3 media queries | 37 | - CSS3 media queries | ||
38 | 38 | | |||
39 | --> | 39 | --> | ||
40 | 40 | | |||
41 | <language name="CSS" version="8" kateversion="5.0" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> | 41 | <language name="CSS" version="9" kateversion="5.0" section="Markup" extensions="*.css" indenter="cstyle" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> | ||
42 | <!-- https://www.w3.org/Style/CSS/current-work --> | ||||
42 | 43 | | |||
43 | <highlighting> | 44 | <highlighting> | ||
44 | <list name="properties"> | 45 | <list name="properties"> | ||
45 | <!-- W3C > Work Draft, from https://www.w3.org/Style/CSS/all-properties --> | 46 | <!-- W3C > Work Draft, from https://www.w3.org/Style/CSS/all-properties --> | ||
46 | <item>align-content</item> | 47 | <item>align-content</item> | ||
47 | <item>align-items</item> | 48 | <item>align-items</item> | ||
48 | <item>alignment-baseline</item> | 49 | <item>alignment-baseline</item> | ||
49 | <item>align-self</item> | 50 | <item>align-self</item> | ||
▲ Show 20 Lines • Show All 1203 Lines • ▼ Show 20 Line(s) | 1210 | <list name="pseudoclasses"> | |||
1253 | <item>after</item> | 1254 | <item>after</item> | ||
1254 | <item>before</item> | 1255 | <item>before</item> | ||
1255 | <item>cue</item> | 1256 | <item>cue</item> | ||
1256 | <item>first-letter</item> | 1257 | <item>first-letter</item> | ||
1257 | <item>first-line</item> | 1258 | <item>first-line</item> | ||
1258 | <item>selection</item> | 1259 | <item>selection</item> | ||
1259 | </list> | 1260 | </list> | ||
1260 | 1261 | | |||
1261 | <list name="pseudoclass-not"> | 1262 | <list name="pseudoclass-selector"> | ||
1262 | <item>not</item> | 1263 | <item>not</item> | ||
1264 | <item>matches</item> | ||||
1263 | </list> | 1265 | </list> | ||
1264 | 1266 | | |||
1265 | <list name="pseudoclasses-@page"> | 1267 | <list name="pseudoclasses-@page"> | ||
1266 | <item>blank</item> | 1268 | <item>blank</item> | ||
1267 | <item>first</item> | 1269 | <item>first</item> | ||
1268 | <item>left</item> | 1270 | <item>left</item> | ||
1269 | <item>recto</item> | 1271 | <item>recto</item> | ||
1270 | <item>right</item> | 1272 | <item>right</item> | ||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 1350 | <contexts> | |||
1378 | </context> | 1380 | </context> | ||
1379 | 1381 | | |||
1380 | <!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid --> | 1382 | <!-- find values // 10px 12pt 2.5em 1rem 75% #ffcc99 red solid --> | ||
1381 | <context name="FindValues" attribute="Normal Text" lineEndContext="#stay"> | 1383 | <context name="FindValues" attribute="Normal Text" lineEndContext="#stay"> | ||
1382 | <DetectChar attribute="Annotation" context="Annotation" char="!" /> | 1384 | <DetectChar attribute="Annotation" context="Annotation" char="!" /> | ||
1383 | <keyword attribute="Value Keyword" context="#stay" String="value keywords" /> | 1385 | <keyword attribute="Value Keyword" context="#stay" String="value keywords" /> | ||
1384 | <keyword attribute="Value" context="#stay" String="values" /> | 1386 | <keyword attribute="Value" context="#stay" String="values" /> | ||
1385 | <keyword attribute="Color" context="#stay" String="colors" /> | 1387 | <keyword attribute="Color" context="#stay" String="colors" /> | ||
1386 | <RegExpr attribute="Color" context="#stay" String="#([0-9A-Fa-f]{3}){1,2}\b" /> | 1388 | <RegExpr attribute="Color" context="#stay" String="#([0-9A-Fa-f]{3,4}){1,2}\b" /> | ||
1387 | <RegExpr attribute="Number" context="FindUnits" String="[-+]?[0-9.]+(?![-+])" /> | 1389 | <RegExpr attribute="Number" context="FindUnits" String="[-+]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?(?![-+])" /> | ||
1388 | <RegExpr attribute="Normal Text" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> | 1390 | <RegExpr attribute="Normal Text" context="#stay" String="[-]?(&nmstart;)(&nmchar;)*" /> | ||
1389 | </context> | 1391 | </context> | ||
1390 | 1392 | | |||
1391 | <context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | 1393 | <context name="Annotation" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | ||
1392 | <WordDetect attribute="Annotation" context="#pop" String="important" /> | 1394 | <WordDetect attribute="Annotation" context="#pop" String="important" /> | ||
1393 | </context> | 1395 | </context> | ||
1394 | 1396 | | |||
1395 | <context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | 1397 | <context name="FindUnits" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | ||
1396 | <RegExpr attribute="Unit" context="#stay" String="(%|(em|ex|ch|rem|vw|vh|vm|px|in|cm|mm|pt|pc|deg|rad|grad|turn|ms|s|Hz|kHz)\b)(?![-+])" /> | 1398 | <!-- https://drafts.csswg.org/css-values-4/#lengths --> | ||
1399 | <RegExpr attribute="Unit" context="#stay" String="(%|(em|ex|cap|ch|ic|rem|lh|rlh|vw|vh|vi|vb|vmin|vmax|cm|mm|Q|in|pc|pt|px|deg|rad|grad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|x)\b)(?![-+])" /> | ||||
1397 | </context> | 1400 | </context> | ||
1398 | 1401 | | |||
1399 | <!-- find strings // "some words" 'some words' --> | 1402 | <!-- find strings // "some words" 'some words' --> | ||
1400 | <context name="FindStrings" attribute="Normal Text" lineEndContext="#stay"> | 1403 | <context name="FindStrings" attribute="Normal Text" lineEndContext="#stay"> | ||
1401 | <DetectChar attribute="String" context="StringDQ" char=""" /> | 1404 | <DetectChar attribute="String" context="StringDQ" char=""" /> | ||
1402 | <DetectChar attribute="String" context="StringSQ" char="'" /> | 1405 | <DetectChar attribute="String" context="StringSQ" char="'" /> | ||
1403 | </context> | 1406 | </context> | ||
1404 | 1407 | | |||
▲ Show 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | |||||
1543 | 1546 | | |||
1544 | <context name="SelectorAttrValue" attribute="String" lineEndContext="#stay"> | 1547 | <context name="SelectorAttrValue" attribute="String" lineEndContext="#stay"> | ||
1545 | <DetectChar attribute="Selector Attribute" context="#pop#pop" char="]" /> | 1548 | <DetectChar attribute="Selector Attribute" context="#pop#pop" char="]" /> | ||
1546 | <DetectIdentifier /> | 1549 | <DetectIdentifier /> | ||
1547 | </context> | 1550 | </context> | ||
1548 | 1551 | | |||
1549 | <context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop"> | 1552 | <context name="SelectorPseudo" attribute="Selector Pseudo" lineEndContext="#pop"> | ||
1550 | <DetectChar attribute="Selector Pseudo" context="SelectorPseudoElements" char=":" /> | 1553 | <DetectChar attribute="Selector Pseudo" context="SelectorPseudoElements" char=":" /> | ||
1551 | <keyword attribute="Selector Pseudo" context="SelectorPseudoValueSelector" String="pseudoclass-not" /> | 1554 | <keyword attribute="Selector Pseudo" context="SelectorPseudoValueSelector" String="pseudoclass-selector" /> | ||
1552 | <keyword attribute="Selector Pseudo" context="SelectorPseudoValue" String="pseudoclasses" /> | 1555 | <keyword attribute="Selector Pseudo" context="SelectorPseudoValue" String="pseudoclasses" /> | ||
1553 | <RegExpr attribute="Selector Pseudo" context="SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | 1556 | <RegExpr attribute="Selector Pseudo" context="SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | ||
1554 | </context> | 1557 | </context> | ||
1555 | 1558 | | |||
1556 | <context name="SelectorPseudoElements" attribute="Selector Pseudo" lineEndContext="#pop#pop"> | 1559 | <context name="SelectorPseudoElements" attribute="Selector Pseudo" lineEndContext="#pop#pop"> | ||
1557 | <keyword attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="pseudoelements" /> | 1560 | <keyword attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="pseudoelements" /> | ||
1558 | <RegExpr attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | 1561 | <RegExpr attribute="Selector Pseudo" context="#pop!SelectorPseudoValue" String="[-a-zA-Z][-a-zA-Z0-9]*" /> | ||
1559 | </context> | 1562 | </context> | ||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |