aboutsummaryrefslogtreecommitdiff
path: root/docs/scripts/prettify/lang-css.js
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-05-29 01:46:00 +0300
committerValentin Popov <info@valentineus.link>2017-05-29 01:46:00 +0300
commit9c0a7f8bee1ed3f3aa924e592225d9b9cf2e18bf (patch)
tree38d03ec46b3a33647fba8a5e686d08a18bf95b12 /docs/scripts/prettify/lang-css.js
downloadiii-client-9c0a7f8bee1ed3f3aa924e592225d9b9cf2e18bf.tar.xz
iii-client-9c0a7f8bee1ed3f3aa924e592225d9b9cf2e18bf.zip
Release of version 0.0.1.
Diffstat (limited to 'docs/scripts/prettify/lang-css.js')
-rw-r--r--docs/scripts/prettify/lang-css.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/scripts/prettify/lang-css.js b/docs/scripts/prettify/lang-css.js
new file mode 100644
index 0000000..041e1f5
--- /dev/null
+++ b/docs/scripts/prettify/lang-css.js
@@ -0,0 +1,2 @@
+PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com",
+/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);