repl-sdk 0.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apl-fqmucPXA.js +141 -0
- package/dist/apl-fqmucPXA.js.map +1 -0
- package/dist/asciiarmor-DucZyvP0.js +57 -0
- package/dist/asciiarmor-DucZyvP0.js.map +1 -0
- package/dist/asn1-BnOEsgAm.js +145 -0
- package/dist/asn1-BnOEsgAm.js.map +1 -0
- package/dist/assets/tar-worker-CxTcoQcr.js +593 -0
- package/dist/assets/tar-worker-CxTcoQcr.js.map +1 -0
- package/dist/asterisk-QAlztEwS.js +346 -0
- package/dist/asterisk-QAlztEwS.js.map +1 -0
- package/dist/brainfuck-DZVCuF_t.js +54 -0
- package/dist/brainfuck-DZVCuF_t.js.map +1 -0
- package/dist/clike-CTYGlS6x.js +800 -0
- package/dist/clike-CTYGlS6x.js.map +1 -0
- package/dist/clojure-BhXMqnxz.js +850 -0
- package/dist/clojure-BhXMqnxz.js.map +1 -0
- package/dist/cmake-BGaNd9E7.js +72 -0
- package/dist/cmake-BGaNd9E7.js.map +1 -0
- package/dist/cobol-4yqQntpt.js +121 -0
- package/dist/cobol-4yqQntpt.js.map +1 -0
- package/dist/codemirror-De3S70Np.js +2912 -0
- package/dist/codemirror-De3S70Np.js.map +1 -0
- package/dist/coffeescript-D2dXvhEc.js +309 -0
- package/dist/coffeescript-D2dXvhEc.js.map +1 -0
- package/dist/commonlisp-CF_VNHQR.js +131 -0
- package/dist/commonlisp-CF_VNHQR.js.map +1 -0
- package/dist/crystal-DyuLTqLs.js +399 -0
- package/dist/crystal-DyuLTqLs.js.map +1 -0
- package/dist/css-DkSyTW67.js +1773 -0
- package/dist/css-DkSyTW67.js.map +1 -0
- package/dist/cypher-Dlu_3r4V.js +122 -0
- package/dist/cypher-Dlu_3r4V.js.map +1 -0
- package/dist/d-UURgV0Ux.js +180 -0
- package/dist/d-UURgV0Ux.js.map +1 -0
- package/dist/diff-B_Bi2Crb.js +26 -0
- package/dist/diff-B_Bi2Crb.js.map +1 -0
- package/dist/dockerfile-Bvk733Ga.js +202 -0
- package/dist/dockerfile-Bvk733Ga.js.map +1 -0
- package/dist/dtd-Dy74G54E.js +115 -0
- package/dist/dtd-Dy74G54E.js.map +1 -0
- package/dist/dylan-TSb-Nfix.js +315 -0
- package/dist/dylan-TSb-Nfix.js.map +1 -0
- package/dist/ebnf-4fKAGW3a.js +141 -0
- package/dist/ebnf-4fKAGW3a.js.map +1 -0
- package/dist/ecl-B59qGGVg.js +179 -0
- package/dist/ecl-B59qGGVg.js.map +1 -0
- package/dist/eiffel-Dze7nlu3.js +135 -0
- package/dist/eiffel-Dze7nlu3.js.map +1 -0
- package/dist/elm-DG7jkhNZ.js +177 -0
- package/dist/elm-DG7jkhNZ.js.map +1 -0
- package/dist/erlang-BO6gOnGA.js +675 -0
- package/dist/erlang-BO6gOnGA.js.map +1 -0
- package/dist/factor-CMxFHDqz.js +66 -0
- package/dist/factor-CMxFHDqz.js.map +1 -0
- package/dist/fcl-CDDUNjTj.js +142 -0
- package/dist/fcl-CDDUNjTj.js.map +1 -0
- package/dist/forth-B9D2JCeE.js +117 -0
- package/dist/forth-B9D2JCeE.js.map +1 -0
- package/dist/fortran-CAG2BFbe.js +468 -0
- package/dist/fortran-CAG2BFbe.js.map +1 -0
- package/dist/gas-0Aw8zDr5.js +294 -0
- package/dist/gas-0Aw8zDr5.js.map +1 -0
- package/dist/gherkin-DhZlEZiy.js +116 -0
- package/dist/gherkin-DhZlEZiy.js.map +1 -0
- package/dist/gjs-DfguZDLq.js +173 -0
- package/dist/gjs-DfguZDLq.js.map +1 -0
- package/dist/gmd-Yas-Oo8k.js +163 -0
- package/dist/gmd-Yas-Oo8k.js.map +1 -0
- package/dist/groovy-CpwJiBl7.js +224 -0
- package/dist/groovy-CpwJiBl7.js.map +1 -0
- package/dist/haskell-ySd-OUo8.js +460 -0
- package/dist/haskell-ySd-OUo8.js.map +1 -0
- package/dist/haxe-7MlzfeYV.js +515 -0
- package/dist/haxe-7MlzfeYV.js.map +1 -0
- package/dist/hbs-CxcmWxSJ.js +62 -0
- package/dist/hbs-CxcmWxSJ.js.map +1 -0
- package/dist/http-BqypyemW.js +80 -0
- package/dist/http-BqypyemW.js.map +1 -0
- package/dist/idl-4HIGJlDI.js +986 -0
- package/dist/idl-4HIGJlDI.js.map +1 -0
- package/dist/index-B3Meoznj.js +118 -0
- package/dist/index-B3Meoznj.js.map +1 -0
- package/dist/index-BQyfDUUx.js +692 -0
- package/dist/index-BQyfDUUx.js.map +1 -0
- package/dist/index-BRDroAD8.js +305 -0
- package/dist/index-BRDroAD8.js.map +1 -0
- package/dist/index-BRMAzRyM.js +179 -0
- package/dist/index-BRMAzRyM.js.map +1 -0
- package/dist/index-Bb8uYQgv.js +927 -0
- package/dist/index-Bb8uYQgv.js.map +1 -0
- package/dist/index-BlOjO66K.js +17618 -0
- package/dist/index-BlOjO66K.js.map +1 -0
- package/dist/index-BoGWnSNL.js +706 -0
- package/dist/index-BoGWnSNL.js.map +1 -0
- package/dist/index-BsRrEiOu.js +98 -0
- package/dist/index-BsRrEiOu.js.map +1 -0
- package/dist/index-C2sFZMth.js +391 -0
- package/dist/index-C2sFZMth.js.map +1 -0
- package/dist/index-C7xwOjmS.js +291 -0
- package/dist/index-C7xwOjmS.js.map +1 -0
- package/dist/index-CA3lFUx6.js +315 -0
- package/dist/index-CA3lFUx6.js.map +1 -0
- package/dist/index-CB-pPTIf.js +98 -0
- package/dist/index-CB-pPTIf.js.map +1 -0
- package/dist/index-CCa6x1FE.js +386 -0
- package/dist/index-CCa6x1FE.js.map +1 -0
- package/dist/index-CD4DINI1.js +158 -0
- package/dist/index-CD4DINI1.js.map +1 -0
- package/dist/index-CE0B_fcG.js +328 -0
- package/dist/index-CE0B_fcG.js.map +1 -0
- package/dist/index-CVGAEPMV.js +2139 -0
- package/dist/index-CVGAEPMV.js.map +1 -0
- package/dist/index-CmaT2afn.js +332 -0
- package/dist/index-CmaT2afn.js.map +1 -0
- package/dist/index-D8sUxXp5.js +83 -0
- package/dist/index-D8sUxXp5.js.map +1 -0
- package/dist/index-DIz8Vpn-.js +737 -0
- package/dist/index-DIz8Vpn-.js.map +1 -0
- package/dist/index-DNP1xT-S.js +408 -0
- package/dist/index-DNP1xT-S.js.map +1 -0
- package/dist/index-DOAqdvnQ.js +862 -0
- package/dist/index-DOAqdvnQ.js.map +1 -0
- package/dist/index-DVUMFbgi.js +152 -0
- package/dist/index-DVUMFbgi.js.map +1 -0
- package/dist/index-VeTBKRVd.js +83 -0
- package/dist/index-VeTBKRVd.js.map +1 -0
- package/dist/index-dXZeR7Bx.js +1767 -0
- package/dist/index-dXZeR7Bx.js.map +1 -0
- package/dist/index-gtqbIb6T.js +62 -0
- package/dist/index-gtqbIb6T.js.map +1 -0
- package/dist/index-pN_pUAQ7.js +2426 -0
- package/dist/index-pN_pUAQ7.js.map +1 -0
- package/dist/index-wasu5VX0.js +1150 -0
- package/dist/index-wasu5VX0.js.map +1 -0
- package/dist/javascript-Bt8B7yTi.js +993 -0
- package/dist/javascript-Bt8B7yTi.js.map +1 -0
- package/dist/julia-Bs6JJhYG.js +408 -0
- package/dist/julia-Bs6JJhYG.js.map +1 -0
- package/dist/livescript-DmzgM3Yt.js +297 -0
- package/dist/livescript-DmzgM3Yt.js.map +1 -0
- package/dist/lua-8cJgIlqe.js +257 -0
- package/dist/lua-8cJgIlqe.js.map +1 -0
- package/dist/mathematica-DNLOL9PQ.js +111 -0
- package/dist/mathematica-DNLOL9PQ.js.map +1 -0
- package/dist/mbox-Ga7d4MMN.js +118 -0
- package/dist/mbox-Ga7d4MMN.js.map +1 -0
- package/dist/mirc-Dma3B8rS.js +108 -0
- package/dist/mirc-Dma3B8rS.js.map +1 -0
- package/dist/mllike-DHn7xckP.js +335 -0
- package/dist/mllike-DHn7xckP.js.map +1 -0
- package/dist/modelica-0d55jYY0.js +148 -0
- package/dist/modelica-0d55jYY0.js.map +1 -0
- package/dist/mscgen-DdqZYINH.js +136 -0
- package/dist/mscgen-DdqZYINH.js.map +1 -0
- package/dist/mumps-Btr8VblO.js +94 -0
- package/dist/mumps-Btr8VblO.js.map +1 -0
- package/dist/nginx-DTDtBDVN.js +142 -0
- package/dist/nginx-DTDtBDVN.js.map +1 -0
- package/dist/nsis-3zG7tgur.js +63 -0
- package/dist/nsis-3zG7tgur.js.map +1 -0
- package/dist/ntriples-CvgOYMpL.js +154 -0
- package/dist/ntriples-CvgOYMpL.js.map +1 -0
- package/dist/octave-DYBj3-tl.js +201 -0
- package/dist/octave-DYBj3-tl.js.map +1 -0
- package/dist/oz-R_e8WMIi.js +232 -0
- package/dist/oz-R_e8WMIi.js.map +1 -0
- package/dist/parse-CAqQaKsh.js +21685 -0
- package/dist/parse-CAqQaKsh.js.map +1 -0
- package/dist/pascal-GD8iposT.js +106 -0
- package/dist/pascal-GD8iposT.js.map +1 -0
- package/dist/perl-DL9mHpoi.js +1106 -0
- package/dist/perl-DL9mHpoi.js.map +1 -0
- package/dist/pig-C_4T4YIV.js +102 -0
- package/dist/pig-C_4T4YIV.js.map +1 -0
- package/dist/powershell-B0suO7Vd.js +329 -0
- package/dist/powershell-B0suO7Vd.js.map +1 -0
- package/dist/properties-BR-vP1aU.js +59 -0
- package/dist/properties-BR-vP1aU.js.map +1 -0
- package/dist/protobuf-BxgpyhoW.js +78 -0
- package/dist/protobuf-BxgpyhoW.js.map +1 -0
- package/dist/pug-vHnWR0UE.js +406 -0
- package/dist/pug-vHnWR0UE.js.map +1 -0
- package/dist/puppet-Bdao66PW.js +138 -0
- package/dist/puppet-Bdao66PW.js.map +1 -0
- package/dist/python-BFGRmuZ9.js +427 -0
- package/dist/python-BFGRmuZ9.js.map +1 -0
- package/dist/q-CrbCVq4a.js +132 -0
- package/dist/q-CrbCVq4a.js.map +1 -0
- package/dist/r-V7nswm59.js +171 -0
- package/dist/r-V7nswm59.js.map +1 -0
- package/dist/render-app-island-B-i8rvGi.js +61 -0
- package/dist/render-app-island-B-i8rvGi.js.map +1 -0
- package/dist/repl-sdk.js +7 -0
- package/dist/repl-sdk.js.map +1 -0
- package/dist/rpm-C-DLY-If.js +110 -0
- package/dist/rpm-C-DLY-If.js.map +1 -0
- package/dist/ruby-JDKLJNK0.js +331 -0
- package/dist/ruby-JDKLJNK0.js.map +1 -0
- package/dist/sas-D2UG-yhZ.js +208 -0
- package/dist/sas-D2UG-yhZ.js.map +1 -0
- package/dist/scheme-BKzrkGJD.js +223 -0
- package/dist/scheme-BKzrkGJD.js.map +1 -0
- package/dist/shell-BlsXDxCn.js +223 -0
- package/dist/shell-BlsXDxCn.js.map +1 -0
- package/dist/sieve-CjwBwOY5.js +136 -0
- package/dist/sieve-CjwBwOY5.js.map +1 -0
- package/dist/simple-mode-DMneyfDu.js +131 -0
- package/dist/simple-mode-DMneyfDu.js.map +1 -0
- package/dist/smalltalk-BOIGQuhN.js +122 -0
- package/dist/smalltalk-BOIGQuhN.js.map +1 -0
- package/dist/solr-CwD7U71z.js +70 -0
- package/dist/solr-CwD7U71z.js.map +1 -0
- package/dist/sparql-DYskk2vE.js +250 -0
- package/dist/sparql-DYskk2vE.js.map +1 -0
- package/dist/spreadsheet-Bgtt3oLP.js +88 -0
- package/dist/spreadsheet-Bgtt3oLP.js.map +1 -0
- package/dist/sql-Cei9CMfk.js +343 -0
- package/dist/sql-Cei9CMfk.js.map +1 -0
- package/dist/stex-C1nZSzAw.js +231 -0
- package/dist/stex-C1nZSzAw.js.map +1 -0
- package/dist/stylus-BkS-boTH.js +566 -0
- package/dist/stylus-BkS-boTH.js.map +1 -0
- package/dist/swift-FRZi1uvB.js +292 -0
- package/dist/swift-FRZi1uvB.js.map +1 -0
- package/dist/tcl-CUcaCdmq.js +115 -0
- package/dist/tcl-CUcaCdmq.js.map +1 -0
- package/dist/textile-BnFpjsrl.js +415 -0
- package/dist/textile-BnFpjsrl.js.map +1 -0
- package/dist/tiddlywiki-CjprD-Qp.js +219 -0
- package/dist/tiddlywiki-CjprD-Qp.js.map +1 -0
- package/dist/tiki-DK9DOeWn.js +269 -0
- package/dist/tiki-DK9DOeWn.js.map +1 -0
- package/dist/toml-BOuWGMcf.js +77 -0
- package/dist/toml-BOuWGMcf.js.map +1 -0
- package/dist/troff-E1bJ0PPL.js +62 -0
- package/dist/troff-E1bJ0PPL.js.map +1 -0
- package/dist/ttcn-cfg-Dc39-fIP.js +134 -0
- package/dist/ttcn-cfg-Dc39-fIP.js.map +1 -0
- package/dist/ttcn-tKd4HLu4.js +193 -0
- package/dist/ttcn-tKd4HLu4.js.map +1 -0
- package/dist/turtle-Dq7-1WAf.js +125 -0
- package/dist/turtle-Dq7-1WAf.js.map +1 -0
- package/dist/vb-Dp90gtsv.js +197 -0
- package/dist/vb-Dp90gtsv.js.map +1 -0
- package/dist/vbscript-Bfn8O8I7.js +479 -0
- package/dist/vbscript-Bfn8O8I7.js.map +1 -0
- package/dist/velocity-BwIZK1TH.js +150 -0
- package/dist/velocity-BwIZK1TH.js.map +1 -0
- package/dist/verilog-CnT9bMk0.js +430 -0
- package/dist/verilog-CnT9bMk0.js.map +1 -0
- package/dist/vhdl-DCkMIyT9.js +159 -0
- package/dist/vhdl-DCkMIyT9.js.map +1 -0
- package/dist/webidl-BTLTThCm.js +205 -0
- package/dist/webidl-BTLTThCm.js.map +1 -0
- package/dist/xquery-BrBUuxMR.js +526 -0
- package/dist/xquery-BrBUuxMR.js.map +1 -0
- package/dist/yacas-b5lAVEIl.js +131 -0
- package/dist/yacas-b5lAVEIl.js.map +1 -0
- package/dist/z80-ClgwfNdB.js +93 -0
- package/dist/z80-ClgwfNdB.js.map +1 -0
- package/package.json +81 -9
- package/src/cache.js +138 -0
- package/src/cdn.js +93 -0
- package/src/codemirror.js +161 -0
- package/src/compilers/ember/gjs.js +212 -0
- package/src/compilers/ember/gmd.js +190 -0
- package/src/compilers/ember/hbs.js +98 -0
- package/src/compilers/ember/render-app-island.js +83 -0
- package/src/compilers/ember.js +166 -0
- package/src/compilers/js.js +32 -0
- package/src/compilers/markdown/build-compiler.js +151 -0
- package/src/compilers/markdown/const.js +2 -0
- package/src/compilers/markdown/heading-id.js +75 -0
- package/src/compilers/markdown/live-code-extraction.js +198 -0
- package/src/compilers/markdown/parse.js +22 -0
- package/src/compilers/markdown/parse.test.ts +363 -0
- package/src/compilers/markdown/sanitize-for-glimmer.js +26 -0
- package/src/compilers/markdown/types.ts +21 -0
- package/src/compilers/markdown/utils.js +78 -0
- package/src/compilers/markdown.js +125 -0
- package/src/compilers/mermaid.js +35 -0
- package/src/compilers/react.js +59 -0
- package/src/compilers/svelte.js +116 -0
- package/src/compilers/vue.js +58 -0
- package/src/compilers.js +108 -0
- package/src/es-module-shim.js +53 -0
- package/src/index.d.ts +53 -4
- package/src/index.js +744 -89
- package/src/npm.js +58 -0
- package/src/request.Request.test.ts +59 -0
- package/src/request.js +140 -0
- package/src/resolve.fromImports.test.ts +35 -0
- package/src/resolve.fromInternalImport.test.ts +69 -0
- package/src/resolve.js +352 -0
- package/src/resolve.resolvePath.test.ts +24 -0
- package/src/resolve.test.ts +23 -0
- package/src/specifier.js +71 -0
- package/src/specifier.test.ts +90 -0
- package/src/tar-worker.js +61 -0
- package/src/tar.js +76 -0
- package/src/types.ts +335 -58
- package/src/utils.js +28 -1
- package/declarations/index.d.ts +0 -73
- package/dist/index.js +0 -107
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,1773 @@
|
|
|
1
|
+
function mkCSS(parserConfig) {
|
|
2
|
+
parserConfig = { ...defaults, ...parserConfig };
|
|
3
|
+
var inline = parserConfig.inline;
|
|
4
|
+
var tokenHooks = parserConfig.tokenHooks, documentTypes2 = parserConfig.documentTypes || {}, mediaTypes2 = parserConfig.mediaTypes || {}, mediaFeatures2 = parserConfig.mediaFeatures || {}, mediaValueKeywords2 = parserConfig.mediaValueKeywords || {}, propertyKeywords2 = parserConfig.propertyKeywords || {}, nonStandardPropertyKeywords2 = parserConfig.nonStandardPropertyKeywords || {}, fontProperties2 = parserConfig.fontProperties || {}, counterDescriptors2 = parserConfig.counterDescriptors || {}, colorKeywords2 = parserConfig.colorKeywords || {}, valueKeywords2 = parserConfig.valueKeywords || {}, allowNested = parserConfig.allowNested, lineComment = parserConfig.lineComment, supportsAtComponent = parserConfig.supportsAtComponent === true, highlightNonStandardPropertyKeywords = parserConfig.highlightNonStandardPropertyKeywords !== false;
|
|
5
|
+
var type, override;
|
|
6
|
+
function ret(style, tp) {
|
|
7
|
+
type = tp;
|
|
8
|
+
return style;
|
|
9
|
+
}
|
|
10
|
+
function tokenBase(stream, state) {
|
|
11
|
+
var ch = stream.next();
|
|
12
|
+
if (tokenHooks[ch]) {
|
|
13
|
+
var result = tokenHooks[ch](stream, state);
|
|
14
|
+
if (result !== false) return result;
|
|
15
|
+
}
|
|
16
|
+
if (ch == "@") {
|
|
17
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
18
|
+
return ret("def", stream.current());
|
|
19
|
+
} else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
|
|
20
|
+
return ret(null, "compare");
|
|
21
|
+
} else if (ch == '"' || ch == "'") {
|
|
22
|
+
state.tokenize = tokenString(ch);
|
|
23
|
+
return state.tokenize(stream, state);
|
|
24
|
+
} else if (ch == "#") {
|
|
25
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
26
|
+
return ret("atom", "hash");
|
|
27
|
+
} else if (ch == "!") {
|
|
28
|
+
stream.match(/^\s*\w*/);
|
|
29
|
+
return ret("keyword", "important");
|
|
30
|
+
} else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
|
|
31
|
+
stream.eatWhile(/[\w.%]/);
|
|
32
|
+
return ret("number", "unit");
|
|
33
|
+
} else if (ch === "-") {
|
|
34
|
+
if (/[\d.]/.test(stream.peek())) {
|
|
35
|
+
stream.eatWhile(/[\w.%]/);
|
|
36
|
+
return ret("number", "unit");
|
|
37
|
+
} else if (stream.match(/^-[\w\\\-]*/)) {
|
|
38
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
39
|
+
if (stream.match(/^\s*:/, false))
|
|
40
|
+
return ret("def", "variable-definition");
|
|
41
|
+
return ret("variableName", "variable");
|
|
42
|
+
} else if (stream.match(/^\w+-/)) {
|
|
43
|
+
return ret("meta", "meta");
|
|
44
|
+
}
|
|
45
|
+
} else if (/[,+>*\/]/.test(ch)) {
|
|
46
|
+
return ret(null, "select-op");
|
|
47
|
+
} else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
|
|
48
|
+
return ret("qualifier", "qualifier");
|
|
49
|
+
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
|
|
50
|
+
return ret(null, ch);
|
|
51
|
+
} else if (stream.match(/^[\w-.]+(?=\()/)) {
|
|
52
|
+
if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
|
|
53
|
+
state.tokenize = tokenParenthesized;
|
|
54
|
+
}
|
|
55
|
+
return ret("variableName.function", "variable");
|
|
56
|
+
} else if (/[\w\\\-]/.test(ch)) {
|
|
57
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
58
|
+
return ret("property", "word");
|
|
59
|
+
} else {
|
|
60
|
+
return ret(null, null);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function tokenString(quote) {
|
|
64
|
+
return function(stream, state) {
|
|
65
|
+
var escaped = false, ch;
|
|
66
|
+
while ((ch = stream.next()) != null) {
|
|
67
|
+
if (ch == quote && !escaped) {
|
|
68
|
+
if (quote == ")") stream.backUp(1);
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
escaped = !escaped && ch == "\\";
|
|
72
|
+
}
|
|
73
|
+
if (ch == quote || !escaped && quote != ")") state.tokenize = null;
|
|
74
|
+
return ret("string", "string");
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function tokenParenthesized(stream, state) {
|
|
78
|
+
stream.next();
|
|
79
|
+
if (!stream.match(/^\s*[\"\')]/, false))
|
|
80
|
+
state.tokenize = tokenString(")");
|
|
81
|
+
else
|
|
82
|
+
state.tokenize = null;
|
|
83
|
+
return ret(null, "(");
|
|
84
|
+
}
|
|
85
|
+
function Context(type2, indent, prev) {
|
|
86
|
+
this.type = type2;
|
|
87
|
+
this.indent = indent;
|
|
88
|
+
this.prev = prev;
|
|
89
|
+
}
|
|
90
|
+
function pushContext(state, stream, type2, indent) {
|
|
91
|
+
state.context = new Context(type2, stream.indentation() + (indent === false ? 0 : stream.indentUnit), state.context);
|
|
92
|
+
return type2;
|
|
93
|
+
}
|
|
94
|
+
function popContext(state) {
|
|
95
|
+
if (state.context.prev)
|
|
96
|
+
state.context = state.context.prev;
|
|
97
|
+
return state.context.type;
|
|
98
|
+
}
|
|
99
|
+
function pass(type2, stream, state) {
|
|
100
|
+
return states[state.context.type](type2, stream, state);
|
|
101
|
+
}
|
|
102
|
+
function popAndPass(type2, stream, state, n) {
|
|
103
|
+
for (var i = n || 1; i > 0; i--)
|
|
104
|
+
state.context = state.context.prev;
|
|
105
|
+
return pass(type2, stream, state);
|
|
106
|
+
}
|
|
107
|
+
function wordAsValue(stream) {
|
|
108
|
+
var word = stream.current().toLowerCase();
|
|
109
|
+
if (valueKeywords2.hasOwnProperty(word))
|
|
110
|
+
override = "atom";
|
|
111
|
+
else if (colorKeywords2.hasOwnProperty(word))
|
|
112
|
+
override = "keyword";
|
|
113
|
+
else
|
|
114
|
+
override = "variable";
|
|
115
|
+
}
|
|
116
|
+
var states = {};
|
|
117
|
+
states.top = function(type2, stream, state) {
|
|
118
|
+
if (type2 == "{") {
|
|
119
|
+
return pushContext(state, stream, "block");
|
|
120
|
+
} else if (type2 == "}" && state.context.prev) {
|
|
121
|
+
return popContext(state);
|
|
122
|
+
} else if (supportsAtComponent && /@component/i.test(type2)) {
|
|
123
|
+
return pushContext(state, stream, "atComponentBlock");
|
|
124
|
+
} else if (/^@(-moz-)?document$/i.test(type2)) {
|
|
125
|
+
return pushContext(state, stream, "documentTypes");
|
|
126
|
+
} else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type2)) {
|
|
127
|
+
return pushContext(state, stream, "atBlock");
|
|
128
|
+
} else if (/^@(font-face|counter-style)/i.test(type2)) {
|
|
129
|
+
state.stateArg = type2;
|
|
130
|
+
return "restricted_atBlock_before";
|
|
131
|
+
} else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type2)) {
|
|
132
|
+
return "keyframes";
|
|
133
|
+
} else if (type2 && type2.charAt(0) == "@") {
|
|
134
|
+
return pushContext(state, stream, "at");
|
|
135
|
+
} else if (type2 == "hash") {
|
|
136
|
+
override = "builtin";
|
|
137
|
+
} else if (type2 == "word") {
|
|
138
|
+
override = "tag";
|
|
139
|
+
} else if (type2 == "variable-definition") {
|
|
140
|
+
return "maybeprop";
|
|
141
|
+
} else if (type2 == "interpolation") {
|
|
142
|
+
return pushContext(state, stream, "interpolation");
|
|
143
|
+
} else if (type2 == ":") {
|
|
144
|
+
return "pseudo";
|
|
145
|
+
} else if (allowNested && type2 == "(") {
|
|
146
|
+
return pushContext(state, stream, "parens");
|
|
147
|
+
}
|
|
148
|
+
return state.context.type;
|
|
149
|
+
};
|
|
150
|
+
states.block = function(type2, stream, state) {
|
|
151
|
+
if (type2 == "word") {
|
|
152
|
+
var word = stream.current().toLowerCase();
|
|
153
|
+
if (propertyKeywords2.hasOwnProperty(word)) {
|
|
154
|
+
override = "property";
|
|
155
|
+
return "maybeprop";
|
|
156
|
+
} else if (nonStandardPropertyKeywords2.hasOwnProperty(word)) {
|
|
157
|
+
override = highlightNonStandardPropertyKeywords ? "string.special" : "property";
|
|
158
|
+
return "maybeprop";
|
|
159
|
+
} else if (allowNested) {
|
|
160
|
+
override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
|
|
161
|
+
return "block";
|
|
162
|
+
} else {
|
|
163
|
+
override = "error";
|
|
164
|
+
return "maybeprop";
|
|
165
|
+
}
|
|
166
|
+
} else if (type2 == "meta") {
|
|
167
|
+
return "block";
|
|
168
|
+
} else if (!allowNested && (type2 == "hash" || type2 == "qualifier")) {
|
|
169
|
+
override = "error";
|
|
170
|
+
return "block";
|
|
171
|
+
} else {
|
|
172
|
+
return states.top(type2, stream, state);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
states.maybeprop = function(type2, stream, state) {
|
|
176
|
+
if (type2 == ":") return pushContext(state, stream, "prop");
|
|
177
|
+
return pass(type2, stream, state);
|
|
178
|
+
};
|
|
179
|
+
states.prop = function(type2, stream, state) {
|
|
180
|
+
if (type2 == ";") return popContext(state);
|
|
181
|
+
if (type2 == "{" && allowNested) return pushContext(state, stream, "propBlock");
|
|
182
|
+
if (type2 == "}" || type2 == "{") return popAndPass(type2, stream, state);
|
|
183
|
+
if (type2 == "(") return pushContext(state, stream, "parens");
|
|
184
|
+
if (type2 == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current())) {
|
|
185
|
+
override = "error";
|
|
186
|
+
} else if (type2 == "word") {
|
|
187
|
+
wordAsValue(stream);
|
|
188
|
+
} else if (type2 == "interpolation") {
|
|
189
|
+
return pushContext(state, stream, "interpolation");
|
|
190
|
+
}
|
|
191
|
+
return "prop";
|
|
192
|
+
};
|
|
193
|
+
states.propBlock = function(type2, _stream, state) {
|
|
194
|
+
if (type2 == "}") return popContext(state);
|
|
195
|
+
if (type2 == "word") {
|
|
196
|
+
override = "property";
|
|
197
|
+
return "maybeprop";
|
|
198
|
+
}
|
|
199
|
+
return state.context.type;
|
|
200
|
+
};
|
|
201
|
+
states.parens = function(type2, stream, state) {
|
|
202
|
+
if (type2 == "{" || type2 == "}") return popAndPass(type2, stream, state);
|
|
203
|
+
if (type2 == ")") return popContext(state);
|
|
204
|
+
if (type2 == "(") return pushContext(state, stream, "parens");
|
|
205
|
+
if (type2 == "interpolation") return pushContext(state, stream, "interpolation");
|
|
206
|
+
if (type2 == "word") wordAsValue(stream);
|
|
207
|
+
return "parens";
|
|
208
|
+
};
|
|
209
|
+
states.pseudo = function(type2, stream, state) {
|
|
210
|
+
if (type2 == "meta") return "pseudo";
|
|
211
|
+
if (type2 == "word") {
|
|
212
|
+
override = "variableName.constant";
|
|
213
|
+
return state.context.type;
|
|
214
|
+
}
|
|
215
|
+
return pass(type2, stream, state);
|
|
216
|
+
};
|
|
217
|
+
states.documentTypes = function(type2, stream, state) {
|
|
218
|
+
if (type2 == "word" && documentTypes2.hasOwnProperty(stream.current())) {
|
|
219
|
+
override = "tag";
|
|
220
|
+
return state.context.type;
|
|
221
|
+
} else {
|
|
222
|
+
return states.atBlock(type2, stream, state);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
states.atBlock = function(type2, stream, state) {
|
|
226
|
+
if (type2 == "(") return pushContext(state, stream, "atBlock_parens");
|
|
227
|
+
if (type2 == "}" || type2 == ";") return popAndPass(type2, stream, state);
|
|
228
|
+
if (type2 == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
|
|
229
|
+
if (type2 == "interpolation") return pushContext(state, stream, "interpolation");
|
|
230
|
+
if (type2 == "word") {
|
|
231
|
+
var word = stream.current().toLowerCase();
|
|
232
|
+
if (word == "only" || word == "not" || word == "and" || word == "or")
|
|
233
|
+
override = "keyword";
|
|
234
|
+
else if (mediaTypes2.hasOwnProperty(word))
|
|
235
|
+
override = "attribute";
|
|
236
|
+
else if (mediaFeatures2.hasOwnProperty(word))
|
|
237
|
+
override = "property";
|
|
238
|
+
else if (mediaValueKeywords2.hasOwnProperty(word))
|
|
239
|
+
override = "keyword";
|
|
240
|
+
else if (propertyKeywords2.hasOwnProperty(word))
|
|
241
|
+
override = "property";
|
|
242
|
+
else if (nonStandardPropertyKeywords2.hasOwnProperty(word))
|
|
243
|
+
override = highlightNonStandardPropertyKeywords ? "string.special" : "property";
|
|
244
|
+
else if (valueKeywords2.hasOwnProperty(word))
|
|
245
|
+
override = "atom";
|
|
246
|
+
else if (colorKeywords2.hasOwnProperty(word))
|
|
247
|
+
override = "keyword";
|
|
248
|
+
else
|
|
249
|
+
override = "error";
|
|
250
|
+
}
|
|
251
|
+
return state.context.type;
|
|
252
|
+
};
|
|
253
|
+
states.atComponentBlock = function(type2, stream, state) {
|
|
254
|
+
if (type2 == "}")
|
|
255
|
+
return popAndPass(type2, stream, state);
|
|
256
|
+
if (type2 == "{")
|
|
257
|
+
return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
|
|
258
|
+
if (type2 == "word")
|
|
259
|
+
override = "error";
|
|
260
|
+
return state.context.type;
|
|
261
|
+
};
|
|
262
|
+
states.atBlock_parens = function(type2, stream, state) {
|
|
263
|
+
if (type2 == ")") return popContext(state);
|
|
264
|
+
if (type2 == "{" || type2 == "}") return popAndPass(type2, stream, state, 2);
|
|
265
|
+
return states.atBlock(type2, stream, state);
|
|
266
|
+
};
|
|
267
|
+
states.restricted_atBlock_before = function(type2, stream, state) {
|
|
268
|
+
if (type2 == "{")
|
|
269
|
+
return pushContext(state, stream, "restricted_atBlock");
|
|
270
|
+
if (type2 == "word" && state.stateArg == "@counter-style") {
|
|
271
|
+
override = "variable";
|
|
272
|
+
return "restricted_atBlock_before";
|
|
273
|
+
}
|
|
274
|
+
return pass(type2, stream, state);
|
|
275
|
+
};
|
|
276
|
+
states.restricted_atBlock = function(type2, stream, state) {
|
|
277
|
+
if (type2 == "}") {
|
|
278
|
+
state.stateArg = null;
|
|
279
|
+
return popContext(state);
|
|
280
|
+
}
|
|
281
|
+
if (type2 == "word") {
|
|
282
|
+
if (state.stateArg == "@font-face" && !fontProperties2.hasOwnProperty(stream.current().toLowerCase()) || state.stateArg == "@counter-style" && !counterDescriptors2.hasOwnProperty(stream.current().toLowerCase()))
|
|
283
|
+
override = "error";
|
|
284
|
+
else
|
|
285
|
+
override = "property";
|
|
286
|
+
return "maybeprop";
|
|
287
|
+
}
|
|
288
|
+
return "restricted_atBlock";
|
|
289
|
+
};
|
|
290
|
+
states.keyframes = function(type2, stream, state) {
|
|
291
|
+
if (type2 == "word") {
|
|
292
|
+
override = "variable";
|
|
293
|
+
return "keyframes";
|
|
294
|
+
}
|
|
295
|
+
if (type2 == "{") return pushContext(state, stream, "top");
|
|
296
|
+
return pass(type2, stream, state);
|
|
297
|
+
};
|
|
298
|
+
states.at = function(type2, stream, state) {
|
|
299
|
+
if (type2 == ";") return popContext(state);
|
|
300
|
+
if (type2 == "{" || type2 == "}") return popAndPass(type2, stream, state);
|
|
301
|
+
if (type2 == "word") override = "tag";
|
|
302
|
+
else if (type2 == "hash") override = "builtin";
|
|
303
|
+
return "at";
|
|
304
|
+
};
|
|
305
|
+
states.interpolation = function(type2, stream, state) {
|
|
306
|
+
if (type2 == "}") return popContext(state);
|
|
307
|
+
if (type2 == "{" || type2 == ";") return popAndPass(type2, stream, state);
|
|
308
|
+
if (type2 == "word") override = "variable";
|
|
309
|
+
else if (type2 != "variable" && type2 != "(" && type2 != ")") override = "error";
|
|
310
|
+
return "interpolation";
|
|
311
|
+
};
|
|
312
|
+
return {
|
|
313
|
+
name: parserConfig.name,
|
|
314
|
+
startState: function() {
|
|
315
|
+
return {
|
|
316
|
+
tokenize: null,
|
|
317
|
+
state: inline ? "block" : "top",
|
|
318
|
+
stateArg: null,
|
|
319
|
+
context: new Context(inline ? "block" : "top", 0, null)
|
|
320
|
+
};
|
|
321
|
+
},
|
|
322
|
+
token: function(stream, state) {
|
|
323
|
+
if (!state.tokenize && stream.eatSpace()) return null;
|
|
324
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
|
325
|
+
if (style && typeof style == "object") {
|
|
326
|
+
type = style[1];
|
|
327
|
+
style = style[0];
|
|
328
|
+
}
|
|
329
|
+
override = style;
|
|
330
|
+
if (type != "comment")
|
|
331
|
+
state.state = states[state.state](type, stream, state);
|
|
332
|
+
return override;
|
|
333
|
+
},
|
|
334
|
+
indent: function(state, textAfter, iCx) {
|
|
335
|
+
var cx = state.context, ch = textAfter && textAfter.charAt(0);
|
|
336
|
+
var indent = cx.indent;
|
|
337
|
+
if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
|
|
338
|
+
if (cx.prev) {
|
|
339
|
+
if (ch == "}" && (cx.type == "block" || cx.type == "top" || cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
|
|
340
|
+
cx = cx.prev;
|
|
341
|
+
indent = cx.indent;
|
|
342
|
+
} else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") || ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
|
|
343
|
+
indent = Math.max(0, cx.indent - iCx.unit);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
return indent;
|
|
347
|
+
},
|
|
348
|
+
languageData: {
|
|
349
|
+
indentOnInput: /^\s*\}$/,
|
|
350
|
+
commentTokens: { line: lineComment, block: { open: "/*", close: "*/" } },
|
|
351
|
+
autocomplete: allWords
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
function keySet(array) {
|
|
356
|
+
var keys = {};
|
|
357
|
+
for (var i = 0; i < array.length; ++i) {
|
|
358
|
+
keys[array[i].toLowerCase()] = true;
|
|
359
|
+
}
|
|
360
|
+
return keys;
|
|
361
|
+
}
|
|
362
|
+
var documentTypes_ = [
|
|
363
|
+
"domain",
|
|
364
|
+
"regexp",
|
|
365
|
+
"url",
|
|
366
|
+
"url-prefix"
|
|
367
|
+
], documentTypes = keySet(documentTypes_);
|
|
368
|
+
var mediaTypes_ = [
|
|
369
|
+
"all",
|
|
370
|
+
"aural",
|
|
371
|
+
"braille",
|
|
372
|
+
"handheld",
|
|
373
|
+
"print",
|
|
374
|
+
"projection",
|
|
375
|
+
"screen",
|
|
376
|
+
"tty",
|
|
377
|
+
"tv",
|
|
378
|
+
"embossed"
|
|
379
|
+
], mediaTypes = keySet(mediaTypes_);
|
|
380
|
+
var mediaFeatures_ = [
|
|
381
|
+
"width",
|
|
382
|
+
"min-width",
|
|
383
|
+
"max-width",
|
|
384
|
+
"height",
|
|
385
|
+
"min-height",
|
|
386
|
+
"max-height",
|
|
387
|
+
"device-width",
|
|
388
|
+
"min-device-width",
|
|
389
|
+
"max-device-width",
|
|
390
|
+
"device-height",
|
|
391
|
+
"min-device-height",
|
|
392
|
+
"max-device-height",
|
|
393
|
+
"aspect-ratio",
|
|
394
|
+
"min-aspect-ratio",
|
|
395
|
+
"max-aspect-ratio",
|
|
396
|
+
"device-aspect-ratio",
|
|
397
|
+
"min-device-aspect-ratio",
|
|
398
|
+
"max-device-aspect-ratio",
|
|
399
|
+
"color",
|
|
400
|
+
"min-color",
|
|
401
|
+
"max-color",
|
|
402
|
+
"color-index",
|
|
403
|
+
"min-color-index",
|
|
404
|
+
"max-color-index",
|
|
405
|
+
"monochrome",
|
|
406
|
+
"min-monochrome",
|
|
407
|
+
"max-monochrome",
|
|
408
|
+
"resolution",
|
|
409
|
+
"min-resolution",
|
|
410
|
+
"max-resolution",
|
|
411
|
+
"scan",
|
|
412
|
+
"grid",
|
|
413
|
+
"orientation",
|
|
414
|
+
"device-pixel-ratio",
|
|
415
|
+
"min-device-pixel-ratio",
|
|
416
|
+
"max-device-pixel-ratio",
|
|
417
|
+
"pointer",
|
|
418
|
+
"any-pointer",
|
|
419
|
+
"hover",
|
|
420
|
+
"any-hover",
|
|
421
|
+
"prefers-color-scheme",
|
|
422
|
+
"dynamic-range",
|
|
423
|
+
"video-dynamic-range"
|
|
424
|
+
], mediaFeatures = keySet(mediaFeatures_);
|
|
425
|
+
var mediaValueKeywords_ = [
|
|
426
|
+
"landscape",
|
|
427
|
+
"portrait",
|
|
428
|
+
"none",
|
|
429
|
+
"coarse",
|
|
430
|
+
"fine",
|
|
431
|
+
"on-demand",
|
|
432
|
+
"hover",
|
|
433
|
+
"interlace",
|
|
434
|
+
"progressive",
|
|
435
|
+
"dark",
|
|
436
|
+
"light",
|
|
437
|
+
"standard",
|
|
438
|
+
"high"
|
|
439
|
+
], mediaValueKeywords = keySet(mediaValueKeywords_);
|
|
440
|
+
var propertyKeywords_ = [
|
|
441
|
+
"align-content",
|
|
442
|
+
"align-items",
|
|
443
|
+
"align-self",
|
|
444
|
+
"alignment-adjust",
|
|
445
|
+
"alignment-baseline",
|
|
446
|
+
"all",
|
|
447
|
+
"anchor-point",
|
|
448
|
+
"animation",
|
|
449
|
+
"animation-delay",
|
|
450
|
+
"animation-direction",
|
|
451
|
+
"animation-duration",
|
|
452
|
+
"animation-fill-mode",
|
|
453
|
+
"animation-iteration-count",
|
|
454
|
+
"animation-name",
|
|
455
|
+
"animation-play-state",
|
|
456
|
+
"animation-timing-function",
|
|
457
|
+
"appearance",
|
|
458
|
+
"azimuth",
|
|
459
|
+
"backdrop-filter",
|
|
460
|
+
"backface-visibility",
|
|
461
|
+
"background",
|
|
462
|
+
"background-attachment",
|
|
463
|
+
"background-blend-mode",
|
|
464
|
+
"background-clip",
|
|
465
|
+
"background-color",
|
|
466
|
+
"background-image",
|
|
467
|
+
"background-origin",
|
|
468
|
+
"background-position",
|
|
469
|
+
"background-position-x",
|
|
470
|
+
"background-position-y",
|
|
471
|
+
"background-repeat",
|
|
472
|
+
"background-size",
|
|
473
|
+
"baseline-shift",
|
|
474
|
+
"binding",
|
|
475
|
+
"bleed",
|
|
476
|
+
"block-size",
|
|
477
|
+
"bookmark-label",
|
|
478
|
+
"bookmark-level",
|
|
479
|
+
"bookmark-state",
|
|
480
|
+
"bookmark-target",
|
|
481
|
+
"border",
|
|
482
|
+
"border-bottom",
|
|
483
|
+
"border-bottom-color",
|
|
484
|
+
"border-bottom-left-radius",
|
|
485
|
+
"border-bottom-right-radius",
|
|
486
|
+
"border-bottom-style",
|
|
487
|
+
"border-bottom-width",
|
|
488
|
+
"border-collapse",
|
|
489
|
+
"border-color",
|
|
490
|
+
"border-image",
|
|
491
|
+
"border-image-outset",
|
|
492
|
+
"border-image-repeat",
|
|
493
|
+
"border-image-slice",
|
|
494
|
+
"border-image-source",
|
|
495
|
+
"border-image-width",
|
|
496
|
+
"border-left",
|
|
497
|
+
"border-left-color",
|
|
498
|
+
"border-left-style",
|
|
499
|
+
"border-left-width",
|
|
500
|
+
"border-radius",
|
|
501
|
+
"border-right",
|
|
502
|
+
"border-right-color",
|
|
503
|
+
"border-right-style",
|
|
504
|
+
"border-right-width",
|
|
505
|
+
"border-spacing",
|
|
506
|
+
"border-style",
|
|
507
|
+
"border-top",
|
|
508
|
+
"border-top-color",
|
|
509
|
+
"border-top-left-radius",
|
|
510
|
+
"border-top-right-radius",
|
|
511
|
+
"border-top-style",
|
|
512
|
+
"border-top-width",
|
|
513
|
+
"border-width",
|
|
514
|
+
"bottom",
|
|
515
|
+
"box-decoration-break",
|
|
516
|
+
"box-shadow",
|
|
517
|
+
"box-sizing",
|
|
518
|
+
"break-after",
|
|
519
|
+
"break-before",
|
|
520
|
+
"break-inside",
|
|
521
|
+
"caption-side",
|
|
522
|
+
"caret-color",
|
|
523
|
+
"clear",
|
|
524
|
+
"clip",
|
|
525
|
+
"color",
|
|
526
|
+
"color-profile",
|
|
527
|
+
"column-count",
|
|
528
|
+
"column-fill",
|
|
529
|
+
"column-gap",
|
|
530
|
+
"column-rule",
|
|
531
|
+
"column-rule-color",
|
|
532
|
+
"column-rule-style",
|
|
533
|
+
"column-rule-width",
|
|
534
|
+
"column-span",
|
|
535
|
+
"column-width",
|
|
536
|
+
"columns",
|
|
537
|
+
"contain",
|
|
538
|
+
"content",
|
|
539
|
+
"counter-increment",
|
|
540
|
+
"counter-reset",
|
|
541
|
+
"crop",
|
|
542
|
+
"cue",
|
|
543
|
+
"cue-after",
|
|
544
|
+
"cue-before",
|
|
545
|
+
"cursor",
|
|
546
|
+
"direction",
|
|
547
|
+
"display",
|
|
548
|
+
"dominant-baseline",
|
|
549
|
+
"drop-initial-after-adjust",
|
|
550
|
+
"drop-initial-after-align",
|
|
551
|
+
"drop-initial-before-adjust",
|
|
552
|
+
"drop-initial-before-align",
|
|
553
|
+
"drop-initial-size",
|
|
554
|
+
"drop-initial-value",
|
|
555
|
+
"elevation",
|
|
556
|
+
"empty-cells",
|
|
557
|
+
"fit",
|
|
558
|
+
"fit-content",
|
|
559
|
+
"fit-position",
|
|
560
|
+
"flex",
|
|
561
|
+
"flex-basis",
|
|
562
|
+
"flex-direction",
|
|
563
|
+
"flex-flow",
|
|
564
|
+
"flex-grow",
|
|
565
|
+
"flex-shrink",
|
|
566
|
+
"flex-wrap",
|
|
567
|
+
"float",
|
|
568
|
+
"float-offset",
|
|
569
|
+
"flow-from",
|
|
570
|
+
"flow-into",
|
|
571
|
+
"font",
|
|
572
|
+
"font-family",
|
|
573
|
+
"font-feature-settings",
|
|
574
|
+
"font-kerning",
|
|
575
|
+
"font-language-override",
|
|
576
|
+
"font-optical-sizing",
|
|
577
|
+
"font-size",
|
|
578
|
+
"font-size-adjust",
|
|
579
|
+
"font-stretch",
|
|
580
|
+
"font-style",
|
|
581
|
+
"font-synthesis",
|
|
582
|
+
"font-variant",
|
|
583
|
+
"font-variant-alternates",
|
|
584
|
+
"font-variant-caps",
|
|
585
|
+
"font-variant-east-asian",
|
|
586
|
+
"font-variant-ligatures",
|
|
587
|
+
"font-variant-numeric",
|
|
588
|
+
"font-variant-position",
|
|
589
|
+
"font-variation-settings",
|
|
590
|
+
"font-weight",
|
|
591
|
+
"gap",
|
|
592
|
+
"grid",
|
|
593
|
+
"grid-area",
|
|
594
|
+
"grid-auto-columns",
|
|
595
|
+
"grid-auto-flow",
|
|
596
|
+
"grid-auto-rows",
|
|
597
|
+
"grid-column",
|
|
598
|
+
"grid-column-end",
|
|
599
|
+
"grid-column-gap",
|
|
600
|
+
"grid-column-start",
|
|
601
|
+
"grid-gap",
|
|
602
|
+
"grid-row",
|
|
603
|
+
"grid-row-end",
|
|
604
|
+
"grid-row-gap",
|
|
605
|
+
"grid-row-start",
|
|
606
|
+
"grid-template",
|
|
607
|
+
"grid-template-areas",
|
|
608
|
+
"grid-template-columns",
|
|
609
|
+
"grid-template-rows",
|
|
610
|
+
"hanging-punctuation",
|
|
611
|
+
"height",
|
|
612
|
+
"hyphens",
|
|
613
|
+
"icon",
|
|
614
|
+
"image-orientation",
|
|
615
|
+
"image-rendering",
|
|
616
|
+
"image-resolution",
|
|
617
|
+
"inline-box-align",
|
|
618
|
+
"inset",
|
|
619
|
+
"inset-block",
|
|
620
|
+
"inset-block-end",
|
|
621
|
+
"inset-block-start",
|
|
622
|
+
"inset-inline",
|
|
623
|
+
"inset-inline-end",
|
|
624
|
+
"inset-inline-start",
|
|
625
|
+
"isolation",
|
|
626
|
+
"justify-content",
|
|
627
|
+
"justify-items",
|
|
628
|
+
"justify-self",
|
|
629
|
+
"left",
|
|
630
|
+
"letter-spacing",
|
|
631
|
+
"line-break",
|
|
632
|
+
"line-height",
|
|
633
|
+
"line-height-step",
|
|
634
|
+
"line-stacking",
|
|
635
|
+
"line-stacking-ruby",
|
|
636
|
+
"line-stacking-shift",
|
|
637
|
+
"line-stacking-strategy",
|
|
638
|
+
"list-style",
|
|
639
|
+
"list-style-image",
|
|
640
|
+
"list-style-position",
|
|
641
|
+
"list-style-type",
|
|
642
|
+
"margin",
|
|
643
|
+
"margin-bottom",
|
|
644
|
+
"margin-left",
|
|
645
|
+
"margin-right",
|
|
646
|
+
"margin-top",
|
|
647
|
+
"marks",
|
|
648
|
+
"marquee-direction",
|
|
649
|
+
"marquee-loop",
|
|
650
|
+
"marquee-play-count",
|
|
651
|
+
"marquee-speed",
|
|
652
|
+
"marquee-style",
|
|
653
|
+
"mask-clip",
|
|
654
|
+
"mask-composite",
|
|
655
|
+
"mask-image",
|
|
656
|
+
"mask-mode",
|
|
657
|
+
"mask-origin",
|
|
658
|
+
"mask-position",
|
|
659
|
+
"mask-repeat",
|
|
660
|
+
"mask-size",
|
|
661
|
+
"mask-type",
|
|
662
|
+
"max-block-size",
|
|
663
|
+
"max-height",
|
|
664
|
+
"max-inline-size",
|
|
665
|
+
"max-width",
|
|
666
|
+
"min-block-size",
|
|
667
|
+
"min-height",
|
|
668
|
+
"min-inline-size",
|
|
669
|
+
"min-width",
|
|
670
|
+
"mix-blend-mode",
|
|
671
|
+
"move-to",
|
|
672
|
+
"nav-down",
|
|
673
|
+
"nav-index",
|
|
674
|
+
"nav-left",
|
|
675
|
+
"nav-right",
|
|
676
|
+
"nav-up",
|
|
677
|
+
"object-fit",
|
|
678
|
+
"object-position",
|
|
679
|
+
"offset",
|
|
680
|
+
"offset-anchor",
|
|
681
|
+
"offset-distance",
|
|
682
|
+
"offset-path",
|
|
683
|
+
"offset-position",
|
|
684
|
+
"offset-rotate",
|
|
685
|
+
"opacity",
|
|
686
|
+
"order",
|
|
687
|
+
"orphans",
|
|
688
|
+
"outline",
|
|
689
|
+
"outline-color",
|
|
690
|
+
"outline-offset",
|
|
691
|
+
"outline-style",
|
|
692
|
+
"outline-width",
|
|
693
|
+
"overflow",
|
|
694
|
+
"overflow-style",
|
|
695
|
+
"overflow-wrap",
|
|
696
|
+
"overflow-x",
|
|
697
|
+
"overflow-y",
|
|
698
|
+
"padding",
|
|
699
|
+
"padding-bottom",
|
|
700
|
+
"padding-left",
|
|
701
|
+
"padding-right",
|
|
702
|
+
"padding-top",
|
|
703
|
+
"page",
|
|
704
|
+
"page-break-after",
|
|
705
|
+
"page-break-before",
|
|
706
|
+
"page-break-inside",
|
|
707
|
+
"page-policy",
|
|
708
|
+
"pause",
|
|
709
|
+
"pause-after",
|
|
710
|
+
"pause-before",
|
|
711
|
+
"perspective",
|
|
712
|
+
"perspective-origin",
|
|
713
|
+
"pitch",
|
|
714
|
+
"pitch-range",
|
|
715
|
+
"place-content",
|
|
716
|
+
"place-items",
|
|
717
|
+
"place-self",
|
|
718
|
+
"play-during",
|
|
719
|
+
"position",
|
|
720
|
+
"presentation-level",
|
|
721
|
+
"punctuation-trim",
|
|
722
|
+
"quotes",
|
|
723
|
+
"region-break-after",
|
|
724
|
+
"region-break-before",
|
|
725
|
+
"region-break-inside",
|
|
726
|
+
"region-fragment",
|
|
727
|
+
"rendering-intent",
|
|
728
|
+
"resize",
|
|
729
|
+
"rest",
|
|
730
|
+
"rest-after",
|
|
731
|
+
"rest-before",
|
|
732
|
+
"richness",
|
|
733
|
+
"right",
|
|
734
|
+
"rotate",
|
|
735
|
+
"rotation",
|
|
736
|
+
"rotation-point",
|
|
737
|
+
"row-gap",
|
|
738
|
+
"ruby-align",
|
|
739
|
+
"ruby-overhang",
|
|
740
|
+
"ruby-position",
|
|
741
|
+
"ruby-span",
|
|
742
|
+
"scale",
|
|
743
|
+
"scroll-behavior",
|
|
744
|
+
"scroll-margin",
|
|
745
|
+
"scroll-margin-block",
|
|
746
|
+
"scroll-margin-block-end",
|
|
747
|
+
"scroll-margin-block-start",
|
|
748
|
+
"scroll-margin-bottom",
|
|
749
|
+
"scroll-margin-inline",
|
|
750
|
+
"scroll-margin-inline-end",
|
|
751
|
+
"scroll-margin-inline-start",
|
|
752
|
+
"scroll-margin-left",
|
|
753
|
+
"scroll-margin-right",
|
|
754
|
+
"scroll-margin-top",
|
|
755
|
+
"scroll-padding",
|
|
756
|
+
"scroll-padding-block",
|
|
757
|
+
"scroll-padding-block-end",
|
|
758
|
+
"scroll-padding-block-start",
|
|
759
|
+
"scroll-padding-bottom",
|
|
760
|
+
"scroll-padding-inline",
|
|
761
|
+
"scroll-padding-inline-end",
|
|
762
|
+
"scroll-padding-inline-start",
|
|
763
|
+
"scroll-padding-left",
|
|
764
|
+
"scroll-padding-right",
|
|
765
|
+
"scroll-padding-top",
|
|
766
|
+
"scroll-snap-align",
|
|
767
|
+
"scroll-snap-type",
|
|
768
|
+
"shape-image-threshold",
|
|
769
|
+
"shape-inside",
|
|
770
|
+
"shape-margin",
|
|
771
|
+
"shape-outside",
|
|
772
|
+
"size",
|
|
773
|
+
"speak",
|
|
774
|
+
"speak-as",
|
|
775
|
+
"speak-header",
|
|
776
|
+
"speak-numeral",
|
|
777
|
+
"speak-punctuation",
|
|
778
|
+
"speech-rate",
|
|
779
|
+
"stress",
|
|
780
|
+
"string-set",
|
|
781
|
+
"tab-size",
|
|
782
|
+
"table-layout",
|
|
783
|
+
"target",
|
|
784
|
+
"target-name",
|
|
785
|
+
"target-new",
|
|
786
|
+
"target-position",
|
|
787
|
+
"text-align",
|
|
788
|
+
"text-align-last",
|
|
789
|
+
"text-combine-upright",
|
|
790
|
+
"text-decoration",
|
|
791
|
+
"text-decoration-color",
|
|
792
|
+
"text-decoration-line",
|
|
793
|
+
"text-decoration-skip",
|
|
794
|
+
"text-decoration-skip-ink",
|
|
795
|
+
"text-decoration-style",
|
|
796
|
+
"text-emphasis",
|
|
797
|
+
"text-emphasis-color",
|
|
798
|
+
"text-emphasis-position",
|
|
799
|
+
"text-emphasis-style",
|
|
800
|
+
"text-height",
|
|
801
|
+
"text-indent",
|
|
802
|
+
"text-justify",
|
|
803
|
+
"text-orientation",
|
|
804
|
+
"text-outline",
|
|
805
|
+
"text-overflow",
|
|
806
|
+
"text-rendering",
|
|
807
|
+
"text-shadow",
|
|
808
|
+
"text-size-adjust",
|
|
809
|
+
"text-space-collapse",
|
|
810
|
+
"text-transform",
|
|
811
|
+
"text-underline-position",
|
|
812
|
+
"text-wrap",
|
|
813
|
+
"top",
|
|
814
|
+
"touch-action",
|
|
815
|
+
"transform",
|
|
816
|
+
"transform-origin",
|
|
817
|
+
"transform-style",
|
|
818
|
+
"transition",
|
|
819
|
+
"transition-delay",
|
|
820
|
+
"transition-duration",
|
|
821
|
+
"transition-property",
|
|
822
|
+
"transition-timing-function",
|
|
823
|
+
"translate",
|
|
824
|
+
"unicode-bidi",
|
|
825
|
+
"user-select",
|
|
826
|
+
"vertical-align",
|
|
827
|
+
"visibility",
|
|
828
|
+
"voice-balance",
|
|
829
|
+
"voice-duration",
|
|
830
|
+
"voice-family",
|
|
831
|
+
"voice-pitch",
|
|
832
|
+
"voice-range",
|
|
833
|
+
"voice-rate",
|
|
834
|
+
"voice-stress",
|
|
835
|
+
"voice-volume",
|
|
836
|
+
"volume",
|
|
837
|
+
"white-space",
|
|
838
|
+
"widows",
|
|
839
|
+
"width",
|
|
840
|
+
"will-change",
|
|
841
|
+
"word-break",
|
|
842
|
+
"word-spacing",
|
|
843
|
+
"word-wrap",
|
|
844
|
+
"writing-mode",
|
|
845
|
+
"z-index",
|
|
846
|
+
// SVG-specific
|
|
847
|
+
"clip-path",
|
|
848
|
+
"clip-rule",
|
|
849
|
+
"mask",
|
|
850
|
+
"enable-background",
|
|
851
|
+
"filter",
|
|
852
|
+
"flood-color",
|
|
853
|
+
"flood-opacity",
|
|
854
|
+
"lighting-color",
|
|
855
|
+
"stop-color",
|
|
856
|
+
"stop-opacity",
|
|
857
|
+
"pointer-events",
|
|
858
|
+
"color-interpolation",
|
|
859
|
+
"color-interpolation-filters",
|
|
860
|
+
"color-rendering",
|
|
861
|
+
"fill",
|
|
862
|
+
"fill-opacity",
|
|
863
|
+
"fill-rule",
|
|
864
|
+
"image-rendering",
|
|
865
|
+
"marker",
|
|
866
|
+
"marker-end",
|
|
867
|
+
"marker-mid",
|
|
868
|
+
"marker-start",
|
|
869
|
+
"paint-order",
|
|
870
|
+
"shape-rendering",
|
|
871
|
+
"stroke",
|
|
872
|
+
"stroke-dasharray",
|
|
873
|
+
"stroke-dashoffset",
|
|
874
|
+
"stroke-linecap",
|
|
875
|
+
"stroke-linejoin",
|
|
876
|
+
"stroke-miterlimit",
|
|
877
|
+
"stroke-opacity",
|
|
878
|
+
"stroke-width",
|
|
879
|
+
"text-rendering",
|
|
880
|
+
"baseline-shift",
|
|
881
|
+
"dominant-baseline",
|
|
882
|
+
"glyph-orientation-horizontal",
|
|
883
|
+
"glyph-orientation-vertical",
|
|
884
|
+
"text-anchor",
|
|
885
|
+
"writing-mode"
|
|
886
|
+
], propertyKeywords = keySet(propertyKeywords_);
|
|
887
|
+
var nonStandardPropertyKeywords_ = [
|
|
888
|
+
"accent-color",
|
|
889
|
+
"aspect-ratio",
|
|
890
|
+
"border-block",
|
|
891
|
+
"border-block-color",
|
|
892
|
+
"border-block-end",
|
|
893
|
+
"border-block-end-color",
|
|
894
|
+
"border-block-end-style",
|
|
895
|
+
"border-block-end-width",
|
|
896
|
+
"border-block-start",
|
|
897
|
+
"border-block-start-color",
|
|
898
|
+
"border-block-start-style",
|
|
899
|
+
"border-block-start-width",
|
|
900
|
+
"border-block-style",
|
|
901
|
+
"border-block-width",
|
|
902
|
+
"border-inline",
|
|
903
|
+
"border-inline-color",
|
|
904
|
+
"border-inline-end",
|
|
905
|
+
"border-inline-end-color",
|
|
906
|
+
"border-inline-end-style",
|
|
907
|
+
"border-inline-end-width",
|
|
908
|
+
"border-inline-start",
|
|
909
|
+
"border-inline-start-color",
|
|
910
|
+
"border-inline-start-style",
|
|
911
|
+
"border-inline-start-width",
|
|
912
|
+
"border-inline-style",
|
|
913
|
+
"border-inline-width",
|
|
914
|
+
"content-visibility",
|
|
915
|
+
"margin-block",
|
|
916
|
+
"margin-block-end",
|
|
917
|
+
"margin-block-start",
|
|
918
|
+
"margin-inline",
|
|
919
|
+
"margin-inline-end",
|
|
920
|
+
"margin-inline-start",
|
|
921
|
+
"overflow-anchor",
|
|
922
|
+
"overscroll-behavior",
|
|
923
|
+
"padding-block",
|
|
924
|
+
"padding-block-end",
|
|
925
|
+
"padding-block-start",
|
|
926
|
+
"padding-inline",
|
|
927
|
+
"padding-inline-end",
|
|
928
|
+
"padding-inline-start",
|
|
929
|
+
"scroll-snap-stop",
|
|
930
|
+
"scrollbar-3d-light-color",
|
|
931
|
+
"scrollbar-arrow-color",
|
|
932
|
+
"scrollbar-base-color",
|
|
933
|
+
"scrollbar-dark-shadow-color",
|
|
934
|
+
"scrollbar-face-color",
|
|
935
|
+
"scrollbar-highlight-color",
|
|
936
|
+
"scrollbar-shadow-color",
|
|
937
|
+
"scrollbar-track-color",
|
|
938
|
+
"searchfield-cancel-button",
|
|
939
|
+
"searchfield-decoration",
|
|
940
|
+
"searchfield-results-button",
|
|
941
|
+
"searchfield-results-decoration",
|
|
942
|
+
"shape-inside",
|
|
943
|
+
"zoom"
|
|
944
|
+
], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
|
|
945
|
+
var fontProperties_ = [
|
|
946
|
+
"font-display",
|
|
947
|
+
"font-family",
|
|
948
|
+
"src",
|
|
949
|
+
"unicode-range",
|
|
950
|
+
"font-variant",
|
|
951
|
+
"font-feature-settings",
|
|
952
|
+
"font-stretch",
|
|
953
|
+
"font-weight",
|
|
954
|
+
"font-style"
|
|
955
|
+
], fontProperties = keySet(fontProperties_);
|
|
956
|
+
var counterDescriptors_ = [
|
|
957
|
+
"additive-symbols",
|
|
958
|
+
"fallback",
|
|
959
|
+
"negative",
|
|
960
|
+
"pad",
|
|
961
|
+
"prefix",
|
|
962
|
+
"range",
|
|
963
|
+
"speak-as",
|
|
964
|
+
"suffix",
|
|
965
|
+
"symbols",
|
|
966
|
+
"system"
|
|
967
|
+
], counterDescriptors = keySet(counterDescriptors_);
|
|
968
|
+
var colorKeywords_ = [
|
|
969
|
+
"aliceblue",
|
|
970
|
+
"antiquewhite",
|
|
971
|
+
"aqua",
|
|
972
|
+
"aquamarine",
|
|
973
|
+
"azure",
|
|
974
|
+
"beige",
|
|
975
|
+
"bisque",
|
|
976
|
+
"black",
|
|
977
|
+
"blanchedalmond",
|
|
978
|
+
"blue",
|
|
979
|
+
"blueviolet",
|
|
980
|
+
"brown",
|
|
981
|
+
"burlywood",
|
|
982
|
+
"cadetblue",
|
|
983
|
+
"chartreuse",
|
|
984
|
+
"chocolate",
|
|
985
|
+
"coral",
|
|
986
|
+
"cornflowerblue",
|
|
987
|
+
"cornsilk",
|
|
988
|
+
"crimson",
|
|
989
|
+
"cyan",
|
|
990
|
+
"darkblue",
|
|
991
|
+
"darkcyan",
|
|
992
|
+
"darkgoldenrod",
|
|
993
|
+
"darkgray",
|
|
994
|
+
"darkgreen",
|
|
995
|
+
"darkgrey",
|
|
996
|
+
"darkkhaki",
|
|
997
|
+
"darkmagenta",
|
|
998
|
+
"darkolivegreen",
|
|
999
|
+
"darkorange",
|
|
1000
|
+
"darkorchid",
|
|
1001
|
+
"darkred",
|
|
1002
|
+
"darksalmon",
|
|
1003
|
+
"darkseagreen",
|
|
1004
|
+
"darkslateblue",
|
|
1005
|
+
"darkslategray",
|
|
1006
|
+
"darkslategrey",
|
|
1007
|
+
"darkturquoise",
|
|
1008
|
+
"darkviolet",
|
|
1009
|
+
"deeppink",
|
|
1010
|
+
"deepskyblue",
|
|
1011
|
+
"dimgray",
|
|
1012
|
+
"dimgrey",
|
|
1013
|
+
"dodgerblue",
|
|
1014
|
+
"firebrick",
|
|
1015
|
+
"floralwhite",
|
|
1016
|
+
"forestgreen",
|
|
1017
|
+
"fuchsia",
|
|
1018
|
+
"gainsboro",
|
|
1019
|
+
"ghostwhite",
|
|
1020
|
+
"gold",
|
|
1021
|
+
"goldenrod",
|
|
1022
|
+
"gray",
|
|
1023
|
+
"grey",
|
|
1024
|
+
"green",
|
|
1025
|
+
"greenyellow",
|
|
1026
|
+
"honeydew",
|
|
1027
|
+
"hotpink",
|
|
1028
|
+
"indianred",
|
|
1029
|
+
"indigo",
|
|
1030
|
+
"ivory",
|
|
1031
|
+
"khaki",
|
|
1032
|
+
"lavender",
|
|
1033
|
+
"lavenderblush",
|
|
1034
|
+
"lawngreen",
|
|
1035
|
+
"lemonchiffon",
|
|
1036
|
+
"lightblue",
|
|
1037
|
+
"lightcoral",
|
|
1038
|
+
"lightcyan",
|
|
1039
|
+
"lightgoldenrodyellow",
|
|
1040
|
+
"lightgray",
|
|
1041
|
+
"lightgreen",
|
|
1042
|
+
"lightgrey",
|
|
1043
|
+
"lightpink",
|
|
1044
|
+
"lightsalmon",
|
|
1045
|
+
"lightseagreen",
|
|
1046
|
+
"lightskyblue",
|
|
1047
|
+
"lightslategray",
|
|
1048
|
+
"lightslategrey",
|
|
1049
|
+
"lightsteelblue",
|
|
1050
|
+
"lightyellow",
|
|
1051
|
+
"lime",
|
|
1052
|
+
"limegreen",
|
|
1053
|
+
"linen",
|
|
1054
|
+
"magenta",
|
|
1055
|
+
"maroon",
|
|
1056
|
+
"mediumaquamarine",
|
|
1057
|
+
"mediumblue",
|
|
1058
|
+
"mediumorchid",
|
|
1059
|
+
"mediumpurple",
|
|
1060
|
+
"mediumseagreen",
|
|
1061
|
+
"mediumslateblue",
|
|
1062
|
+
"mediumspringgreen",
|
|
1063
|
+
"mediumturquoise",
|
|
1064
|
+
"mediumvioletred",
|
|
1065
|
+
"midnightblue",
|
|
1066
|
+
"mintcream",
|
|
1067
|
+
"mistyrose",
|
|
1068
|
+
"moccasin",
|
|
1069
|
+
"navajowhite",
|
|
1070
|
+
"navy",
|
|
1071
|
+
"oldlace",
|
|
1072
|
+
"olive",
|
|
1073
|
+
"olivedrab",
|
|
1074
|
+
"orange",
|
|
1075
|
+
"orangered",
|
|
1076
|
+
"orchid",
|
|
1077
|
+
"palegoldenrod",
|
|
1078
|
+
"palegreen",
|
|
1079
|
+
"paleturquoise",
|
|
1080
|
+
"palevioletred",
|
|
1081
|
+
"papayawhip",
|
|
1082
|
+
"peachpuff",
|
|
1083
|
+
"peru",
|
|
1084
|
+
"pink",
|
|
1085
|
+
"plum",
|
|
1086
|
+
"powderblue",
|
|
1087
|
+
"purple",
|
|
1088
|
+
"rebeccapurple",
|
|
1089
|
+
"red",
|
|
1090
|
+
"rosybrown",
|
|
1091
|
+
"royalblue",
|
|
1092
|
+
"saddlebrown",
|
|
1093
|
+
"salmon",
|
|
1094
|
+
"sandybrown",
|
|
1095
|
+
"seagreen",
|
|
1096
|
+
"seashell",
|
|
1097
|
+
"sienna",
|
|
1098
|
+
"silver",
|
|
1099
|
+
"skyblue",
|
|
1100
|
+
"slateblue",
|
|
1101
|
+
"slategray",
|
|
1102
|
+
"slategrey",
|
|
1103
|
+
"snow",
|
|
1104
|
+
"springgreen",
|
|
1105
|
+
"steelblue",
|
|
1106
|
+
"tan",
|
|
1107
|
+
"teal",
|
|
1108
|
+
"thistle",
|
|
1109
|
+
"tomato",
|
|
1110
|
+
"turquoise",
|
|
1111
|
+
"violet",
|
|
1112
|
+
"wheat",
|
|
1113
|
+
"white",
|
|
1114
|
+
"whitesmoke",
|
|
1115
|
+
"yellow",
|
|
1116
|
+
"yellowgreen"
|
|
1117
|
+
], colorKeywords = keySet(colorKeywords_);
|
|
1118
|
+
var valueKeywords_ = [
|
|
1119
|
+
"above",
|
|
1120
|
+
"absolute",
|
|
1121
|
+
"activeborder",
|
|
1122
|
+
"additive",
|
|
1123
|
+
"activecaption",
|
|
1124
|
+
"afar",
|
|
1125
|
+
"after-white-space",
|
|
1126
|
+
"ahead",
|
|
1127
|
+
"alias",
|
|
1128
|
+
"all",
|
|
1129
|
+
"all-scroll",
|
|
1130
|
+
"alphabetic",
|
|
1131
|
+
"alternate",
|
|
1132
|
+
"always",
|
|
1133
|
+
"amharic",
|
|
1134
|
+
"amharic-abegede",
|
|
1135
|
+
"antialiased",
|
|
1136
|
+
"appworkspace",
|
|
1137
|
+
"arabic-indic",
|
|
1138
|
+
"armenian",
|
|
1139
|
+
"asterisks",
|
|
1140
|
+
"attr",
|
|
1141
|
+
"auto",
|
|
1142
|
+
"auto-flow",
|
|
1143
|
+
"avoid",
|
|
1144
|
+
"avoid-column",
|
|
1145
|
+
"avoid-page",
|
|
1146
|
+
"avoid-region",
|
|
1147
|
+
"axis-pan",
|
|
1148
|
+
"background",
|
|
1149
|
+
"backwards",
|
|
1150
|
+
"baseline",
|
|
1151
|
+
"below",
|
|
1152
|
+
"bidi-override",
|
|
1153
|
+
"binary",
|
|
1154
|
+
"bengali",
|
|
1155
|
+
"blink",
|
|
1156
|
+
"block",
|
|
1157
|
+
"block-axis",
|
|
1158
|
+
"blur",
|
|
1159
|
+
"bold",
|
|
1160
|
+
"bolder",
|
|
1161
|
+
"border",
|
|
1162
|
+
"border-box",
|
|
1163
|
+
"both",
|
|
1164
|
+
"bottom",
|
|
1165
|
+
"break",
|
|
1166
|
+
"break-all",
|
|
1167
|
+
"break-word",
|
|
1168
|
+
"brightness",
|
|
1169
|
+
"bullets",
|
|
1170
|
+
"button",
|
|
1171
|
+
"buttonface",
|
|
1172
|
+
"buttonhighlight",
|
|
1173
|
+
"buttonshadow",
|
|
1174
|
+
"buttontext",
|
|
1175
|
+
"calc",
|
|
1176
|
+
"cambodian",
|
|
1177
|
+
"capitalize",
|
|
1178
|
+
"caps-lock-indicator",
|
|
1179
|
+
"caption",
|
|
1180
|
+
"captiontext",
|
|
1181
|
+
"caret",
|
|
1182
|
+
"cell",
|
|
1183
|
+
"center",
|
|
1184
|
+
"checkbox",
|
|
1185
|
+
"circle",
|
|
1186
|
+
"cjk-decimal",
|
|
1187
|
+
"cjk-earthly-branch",
|
|
1188
|
+
"cjk-heavenly-stem",
|
|
1189
|
+
"cjk-ideographic",
|
|
1190
|
+
"clear",
|
|
1191
|
+
"clip",
|
|
1192
|
+
"close-quote",
|
|
1193
|
+
"col-resize",
|
|
1194
|
+
"collapse",
|
|
1195
|
+
"color",
|
|
1196
|
+
"color-burn",
|
|
1197
|
+
"color-dodge",
|
|
1198
|
+
"column",
|
|
1199
|
+
"column-reverse",
|
|
1200
|
+
"compact",
|
|
1201
|
+
"condensed",
|
|
1202
|
+
"conic-gradient",
|
|
1203
|
+
"contain",
|
|
1204
|
+
"content",
|
|
1205
|
+
"contents",
|
|
1206
|
+
"content-box",
|
|
1207
|
+
"context-menu",
|
|
1208
|
+
"continuous",
|
|
1209
|
+
"contrast",
|
|
1210
|
+
"copy",
|
|
1211
|
+
"counter",
|
|
1212
|
+
"counters",
|
|
1213
|
+
"cover",
|
|
1214
|
+
"crop",
|
|
1215
|
+
"cross",
|
|
1216
|
+
"crosshair",
|
|
1217
|
+
"cubic-bezier",
|
|
1218
|
+
"currentcolor",
|
|
1219
|
+
"cursive",
|
|
1220
|
+
"cyclic",
|
|
1221
|
+
"darken",
|
|
1222
|
+
"dashed",
|
|
1223
|
+
"decimal",
|
|
1224
|
+
"decimal-leading-zero",
|
|
1225
|
+
"default",
|
|
1226
|
+
"default-button",
|
|
1227
|
+
"dense",
|
|
1228
|
+
"destination-atop",
|
|
1229
|
+
"destination-in",
|
|
1230
|
+
"destination-out",
|
|
1231
|
+
"destination-over",
|
|
1232
|
+
"devanagari",
|
|
1233
|
+
"difference",
|
|
1234
|
+
"disc",
|
|
1235
|
+
"discard",
|
|
1236
|
+
"disclosure-closed",
|
|
1237
|
+
"disclosure-open",
|
|
1238
|
+
"document",
|
|
1239
|
+
"dot-dash",
|
|
1240
|
+
"dot-dot-dash",
|
|
1241
|
+
"dotted",
|
|
1242
|
+
"double",
|
|
1243
|
+
"down",
|
|
1244
|
+
"drop-shadow",
|
|
1245
|
+
"e-resize",
|
|
1246
|
+
"ease",
|
|
1247
|
+
"ease-in",
|
|
1248
|
+
"ease-in-out",
|
|
1249
|
+
"ease-out",
|
|
1250
|
+
"element",
|
|
1251
|
+
"ellipse",
|
|
1252
|
+
"ellipsis",
|
|
1253
|
+
"embed",
|
|
1254
|
+
"end",
|
|
1255
|
+
"ethiopic",
|
|
1256
|
+
"ethiopic-abegede",
|
|
1257
|
+
"ethiopic-abegede-am-et",
|
|
1258
|
+
"ethiopic-abegede-gez",
|
|
1259
|
+
"ethiopic-abegede-ti-er",
|
|
1260
|
+
"ethiopic-abegede-ti-et",
|
|
1261
|
+
"ethiopic-halehame-aa-er",
|
|
1262
|
+
"ethiopic-halehame-aa-et",
|
|
1263
|
+
"ethiopic-halehame-am-et",
|
|
1264
|
+
"ethiopic-halehame-gez",
|
|
1265
|
+
"ethiopic-halehame-om-et",
|
|
1266
|
+
"ethiopic-halehame-sid-et",
|
|
1267
|
+
"ethiopic-halehame-so-et",
|
|
1268
|
+
"ethiopic-halehame-ti-er",
|
|
1269
|
+
"ethiopic-halehame-ti-et",
|
|
1270
|
+
"ethiopic-halehame-tig",
|
|
1271
|
+
"ethiopic-numeric",
|
|
1272
|
+
"ew-resize",
|
|
1273
|
+
"exclusion",
|
|
1274
|
+
"expanded",
|
|
1275
|
+
"extends",
|
|
1276
|
+
"extra-condensed",
|
|
1277
|
+
"extra-expanded",
|
|
1278
|
+
"fantasy",
|
|
1279
|
+
"fast",
|
|
1280
|
+
"fill",
|
|
1281
|
+
"fill-box",
|
|
1282
|
+
"fixed",
|
|
1283
|
+
"flat",
|
|
1284
|
+
"flex",
|
|
1285
|
+
"flex-end",
|
|
1286
|
+
"flex-start",
|
|
1287
|
+
"footnotes",
|
|
1288
|
+
"forwards",
|
|
1289
|
+
"from",
|
|
1290
|
+
"geometricPrecision",
|
|
1291
|
+
"georgian",
|
|
1292
|
+
"grayscale",
|
|
1293
|
+
"graytext",
|
|
1294
|
+
"grid",
|
|
1295
|
+
"groove",
|
|
1296
|
+
"gujarati",
|
|
1297
|
+
"gurmukhi",
|
|
1298
|
+
"hand",
|
|
1299
|
+
"hangul",
|
|
1300
|
+
"hangul-consonant",
|
|
1301
|
+
"hard-light",
|
|
1302
|
+
"hebrew",
|
|
1303
|
+
"help",
|
|
1304
|
+
"hidden",
|
|
1305
|
+
"hide",
|
|
1306
|
+
"higher",
|
|
1307
|
+
"highlight",
|
|
1308
|
+
"highlighttext",
|
|
1309
|
+
"hiragana",
|
|
1310
|
+
"hiragana-iroha",
|
|
1311
|
+
"horizontal",
|
|
1312
|
+
"hsl",
|
|
1313
|
+
"hsla",
|
|
1314
|
+
"hue",
|
|
1315
|
+
"hue-rotate",
|
|
1316
|
+
"icon",
|
|
1317
|
+
"ignore",
|
|
1318
|
+
"inactiveborder",
|
|
1319
|
+
"inactivecaption",
|
|
1320
|
+
"inactivecaptiontext",
|
|
1321
|
+
"infinite",
|
|
1322
|
+
"infobackground",
|
|
1323
|
+
"infotext",
|
|
1324
|
+
"inherit",
|
|
1325
|
+
"initial",
|
|
1326
|
+
"inline",
|
|
1327
|
+
"inline-axis",
|
|
1328
|
+
"inline-block",
|
|
1329
|
+
"inline-flex",
|
|
1330
|
+
"inline-grid",
|
|
1331
|
+
"inline-table",
|
|
1332
|
+
"inset",
|
|
1333
|
+
"inside",
|
|
1334
|
+
"intrinsic",
|
|
1335
|
+
"invert",
|
|
1336
|
+
"italic",
|
|
1337
|
+
"japanese-formal",
|
|
1338
|
+
"japanese-informal",
|
|
1339
|
+
"justify",
|
|
1340
|
+
"kannada",
|
|
1341
|
+
"katakana",
|
|
1342
|
+
"katakana-iroha",
|
|
1343
|
+
"keep-all",
|
|
1344
|
+
"khmer",
|
|
1345
|
+
"korean-hangul-formal",
|
|
1346
|
+
"korean-hanja-formal",
|
|
1347
|
+
"korean-hanja-informal",
|
|
1348
|
+
"landscape",
|
|
1349
|
+
"lao",
|
|
1350
|
+
"large",
|
|
1351
|
+
"larger",
|
|
1352
|
+
"left",
|
|
1353
|
+
"level",
|
|
1354
|
+
"lighter",
|
|
1355
|
+
"lighten",
|
|
1356
|
+
"line-through",
|
|
1357
|
+
"linear",
|
|
1358
|
+
"linear-gradient",
|
|
1359
|
+
"lines",
|
|
1360
|
+
"list-item",
|
|
1361
|
+
"listbox",
|
|
1362
|
+
"listitem",
|
|
1363
|
+
"local",
|
|
1364
|
+
"logical",
|
|
1365
|
+
"loud",
|
|
1366
|
+
"lower",
|
|
1367
|
+
"lower-alpha",
|
|
1368
|
+
"lower-armenian",
|
|
1369
|
+
"lower-greek",
|
|
1370
|
+
"lower-hexadecimal",
|
|
1371
|
+
"lower-latin",
|
|
1372
|
+
"lower-norwegian",
|
|
1373
|
+
"lower-roman",
|
|
1374
|
+
"lowercase",
|
|
1375
|
+
"ltr",
|
|
1376
|
+
"luminosity",
|
|
1377
|
+
"malayalam",
|
|
1378
|
+
"manipulation",
|
|
1379
|
+
"match",
|
|
1380
|
+
"matrix",
|
|
1381
|
+
"matrix3d",
|
|
1382
|
+
"media-play-button",
|
|
1383
|
+
"media-slider",
|
|
1384
|
+
"media-sliderthumb",
|
|
1385
|
+
"media-volume-slider",
|
|
1386
|
+
"media-volume-sliderthumb",
|
|
1387
|
+
"medium",
|
|
1388
|
+
"menu",
|
|
1389
|
+
"menulist",
|
|
1390
|
+
"menulist-button",
|
|
1391
|
+
"menutext",
|
|
1392
|
+
"message-box",
|
|
1393
|
+
"middle",
|
|
1394
|
+
"min-intrinsic",
|
|
1395
|
+
"mix",
|
|
1396
|
+
"mongolian",
|
|
1397
|
+
"monospace",
|
|
1398
|
+
"move",
|
|
1399
|
+
"multiple",
|
|
1400
|
+
"multiple_mask_images",
|
|
1401
|
+
"multiply",
|
|
1402
|
+
"myanmar",
|
|
1403
|
+
"n-resize",
|
|
1404
|
+
"narrower",
|
|
1405
|
+
"ne-resize",
|
|
1406
|
+
"nesw-resize",
|
|
1407
|
+
"no-close-quote",
|
|
1408
|
+
"no-drop",
|
|
1409
|
+
"no-open-quote",
|
|
1410
|
+
"no-repeat",
|
|
1411
|
+
"none",
|
|
1412
|
+
"normal",
|
|
1413
|
+
"not-allowed",
|
|
1414
|
+
"nowrap",
|
|
1415
|
+
"ns-resize",
|
|
1416
|
+
"numbers",
|
|
1417
|
+
"numeric",
|
|
1418
|
+
"nw-resize",
|
|
1419
|
+
"nwse-resize",
|
|
1420
|
+
"oblique",
|
|
1421
|
+
"octal",
|
|
1422
|
+
"opacity",
|
|
1423
|
+
"open-quote",
|
|
1424
|
+
"optimizeLegibility",
|
|
1425
|
+
"optimizeSpeed",
|
|
1426
|
+
"oriya",
|
|
1427
|
+
"oromo",
|
|
1428
|
+
"outset",
|
|
1429
|
+
"outside",
|
|
1430
|
+
"outside-shape",
|
|
1431
|
+
"overlay",
|
|
1432
|
+
"overline",
|
|
1433
|
+
"padding",
|
|
1434
|
+
"padding-box",
|
|
1435
|
+
"painted",
|
|
1436
|
+
"page",
|
|
1437
|
+
"paused",
|
|
1438
|
+
"persian",
|
|
1439
|
+
"perspective",
|
|
1440
|
+
"pinch-zoom",
|
|
1441
|
+
"plus-darker",
|
|
1442
|
+
"plus-lighter",
|
|
1443
|
+
"pointer",
|
|
1444
|
+
"polygon",
|
|
1445
|
+
"portrait",
|
|
1446
|
+
"pre",
|
|
1447
|
+
"pre-line",
|
|
1448
|
+
"pre-wrap",
|
|
1449
|
+
"preserve-3d",
|
|
1450
|
+
"progress",
|
|
1451
|
+
"push-button",
|
|
1452
|
+
"radial-gradient",
|
|
1453
|
+
"radio",
|
|
1454
|
+
"read-only",
|
|
1455
|
+
"read-write",
|
|
1456
|
+
"read-write-plaintext-only",
|
|
1457
|
+
"rectangle",
|
|
1458
|
+
"region",
|
|
1459
|
+
"relative",
|
|
1460
|
+
"repeat",
|
|
1461
|
+
"repeating-linear-gradient",
|
|
1462
|
+
"repeating-radial-gradient",
|
|
1463
|
+
"repeating-conic-gradient",
|
|
1464
|
+
"repeat-x",
|
|
1465
|
+
"repeat-y",
|
|
1466
|
+
"reset",
|
|
1467
|
+
"reverse",
|
|
1468
|
+
"rgb",
|
|
1469
|
+
"rgba",
|
|
1470
|
+
"ridge",
|
|
1471
|
+
"right",
|
|
1472
|
+
"rotate",
|
|
1473
|
+
"rotate3d",
|
|
1474
|
+
"rotateX",
|
|
1475
|
+
"rotateY",
|
|
1476
|
+
"rotateZ",
|
|
1477
|
+
"round",
|
|
1478
|
+
"row",
|
|
1479
|
+
"row-resize",
|
|
1480
|
+
"row-reverse",
|
|
1481
|
+
"rtl",
|
|
1482
|
+
"run-in",
|
|
1483
|
+
"running",
|
|
1484
|
+
"s-resize",
|
|
1485
|
+
"sans-serif",
|
|
1486
|
+
"saturate",
|
|
1487
|
+
"saturation",
|
|
1488
|
+
"scale",
|
|
1489
|
+
"scale3d",
|
|
1490
|
+
"scaleX",
|
|
1491
|
+
"scaleY",
|
|
1492
|
+
"scaleZ",
|
|
1493
|
+
"screen",
|
|
1494
|
+
"scroll",
|
|
1495
|
+
"scrollbar",
|
|
1496
|
+
"scroll-position",
|
|
1497
|
+
"se-resize",
|
|
1498
|
+
"searchfield",
|
|
1499
|
+
"searchfield-cancel-button",
|
|
1500
|
+
"searchfield-decoration",
|
|
1501
|
+
"searchfield-results-button",
|
|
1502
|
+
"searchfield-results-decoration",
|
|
1503
|
+
"self-start",
|
|
1504
|
+
"self-end",
|
|
1505
|
+
"semi-condensed",
|
|
1506
|
+
"semi-expanded",
|
|
1507
|
+
"separate",
|
|
1508
|
+
"sepia",
|
|
1509
|
+
"serif",
|
|
1510
|
+
"show",
|
|
1511
|
+
"sidama",
|
|
1512
|
+
"simp-chinese-formal",
|
|
1513
|
+
"simp-chinese-informal",
|
|
1514
|
+
"single",
|
|
1515
|
+
"skew",
|
|
1516
|
+
"skewX",
|
|
1517
|
+
"skewY",
|
|
1518
|
+
"skip-white-space",
|
|
1519
|
+
"slide",
|
|
1520
|
+
"slider-horizontal",
|
|
1521
|
+
"slider-vertical",
|
|
1522
|
+
"sliderthumb-horizontal",
|
|
1523
|
+
"sliderthumb-vertical",
|
|
1524
|
+
"slow",
|
|
1525
|
+
"small",
|
|
1526
|
+
"small-caps",
|
|
1527
|
+
"small-caption",
|
|
1528
|
+
"smaller",
|
|
1529
|
+
"soft-light",
|
|
1530
|
+
"solid",
|
|
1531
|
+
"somali",
|
|
1532
|
+
"source-atop",
|
|
1533
|
+
"source-in",
|
|
1534
|
+
"source-out",
|
|
1535
|
+
"source-over",
|
|
1536
|
+
"space",
|
|
1537
|
+
"space-around",
|
|
1538
|
+
"space-between",
|
|
1539
|
+
"space-evenly",
|
|
1540
|
+
"spell-out",
|
|
1541
|
+
"square",
|
|
1542
|
+
"square-button",
|
|
1543
|
+
"start",
|
|
1544
|
+
"static",
|
|
1545
|
+
"status-bar",
|
|
1546
|
+
"stretch",
|
|
1547
|
+
"stroke",
|
|
1548
|
+
"stroke-box",
|
|
1549
|
+
"sub",
|
|
1550
|
+
"subpixel-antialiased",
|
|
1551
|
+
"svg_masks",
|
|
1552
|
+
"super",
|
|
1553
|
+
"sw-resize",
|
|
1554
|
+
"symbolic",
|
|
1555
|
+
"symbols",
|
|
1556
|
+
"system-ui",
|
|
1557
|
+
"table",
|
|
1558
|
+
"table-caption",
|
|
1559
|
+
"table-cell",
|
|
1560
|
+
"table-column",
|
|
1561
|
+
"table-column-group",
|
|
1562
|
+
"table-footer-group",
|
|
1563
|
+
"table-header-group",
|
|
1564
|
+
"table-row",
|
|
1565
|
+
"table-row-group",
|
|
1566
|
+
"tamil",
|
|
1567
|
+
"telugu",
|
|
1568
|
+
"text",
|
|
1569
|
+
"text-bottom",
|
|
1570
|
+
"text-top",
|
|
1571
|
+
"textarea",
|
|
1572
|
+
"textfield",
|
|
1573
|
+
"thai",
|
|
1574
|
+
"thick",
|
|
1575
|
+
"thin",
|
|
1576
|
+
"threeddarkshadow",
|
|
1577
|
+
"threedface",
|
|
1578
|
+
"threedhighlight",
|
|
1579
|
+
"threedlightshadow",
|
|
1580
|
+
"threedshadow",
|
|
1581
|
+
"tibetan",
|
|
1582
|
+
"tigre",
|
|
1583
|
+
"tigrinya-er",
|
|
1584
|
+
"tigrinya-er-abegede",
|
|
1585
|
+
"tigrinya-et",
|
|
1586
|
+
"tigrinya-et-abegede",
|
|
1587
|
+
"to",
|
|
1588
|
+
"top",
|
|
1589
|
+
"trad-chinese-formal",
|
|
1590
|
+
"trad-chinese-informal",
|
|
1591
|
+
"transform",
|
|
1592
|
+
"translate",
|
|
1593
|
+
"translate3d",
|
|
1594
|
+
"translateX",
|
|
1595
|
+
"translateY",
|
|
1596
|
+
"translateZ",
|
|
1597
|
+
"transparent",
|
|
1598
|
+
"ultra-condensed",
|
|
1599
|
+
"ultra-expanded",
|
|
1600
|
+
"underline",
|
|
1601
|
+
"unidirectional-pan",
|
|
1602
|
+
"unset",
|
|
1603
|
+
"up",
|
|
1604
|
+
"upper-alpha",
|
|
1605
|
+
"upper-armenian",
|
|
1606
|
+
"upper-greek",
|
|
1607
|
+
"upper-hexadecimal",
|
|
1608
|
+
"upper-latin",
|
|
1609
|
+
"upper-norwegian",
|
|
1610
|
+
"upper-roman",
|
|
1611
|
+
"uppercase",
|
|
1612
|
+
"urdu",
|
|
1613
|
+
"url",
|
|
1614
|
+
"var",
|
|
1615
|
+
"vertical",
|
|
1616
|
+
"vertical-text",
|
|
1617
|
+
"view-box",
|
|
1618
|
+
"visible",
|
|
1619
|
+
"visibleFill",
|
|
1620
|
+
"visiblePainted",
|
|
1621
|
+
"visibleStroke",
|
|
1622
|
+
"visual",
|
|
1623
|
+
"w-resize",
|
|
1624
|
+
"wait",
|
|
1625
|
+
"wave",
|
|
1626
|
+
"wider",
|
|
1627
|
+
"window",
|
|
1628
|
+
"windowframe",
|
|
1629
|
+
"windowtext",
|
|
1630
|
+
"words",
|
|
1631
|
+
"wrap",
|
|
1632
|
+
"wrap-reverse",
|
|
1633
|
+
"x-large",
|
|
1634
|
+
"x-small",
|
|
1635
|
+
"xor",
|
|
1636
|
+
"xx-large",
|
|
1637
|
+
"xx-small"
|
|
1638
|
+
], valueKeywords = keySet(valueKeywords_);
|
|
1639
|
+
var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_).concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_).concat(valueKeywords_);
|
|
1640
|
+
const defaults = {
|
|
1641
|
+
documentTypes,
|
|
1642
|
+
mediaTypes,
|
|
1643
|
+
mediaFeatures,
|
|
1644
|
+
mediaValueKeywords,
|
|
1645
|
+
propertyKeywords,
|
|
1646
|
+
nonStandardPropertyKeywords,
|
|
1647
|
+
fontProperties,
|
|
1648
|
+
counterDescriptors,
|
|
1649
|
+
colorKeywords,
|
|
1650
|
+
valueKeywords,
|
|
1651
|
+
tokenHooks: {
|
|
1652
|
+
"/": function(stream, state) {
|
|
1653
|
+
if (!stream.eat("*")) return false;
|
|
1654
|
+
state.tokenize = tokenCComment;
|
|
1655
|
+
return tokenCComment(stream, state);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
};
|
|
1659
|
+
mkCSS({ name: "css" });
|
|
1660
|
+
function tokenCComment(stream, state) {
|
|
1661
|
+
var maybeEnd = false, ch;
|
|
1662
|
+
while ((ch = stream.next()) != null) {
|
|
1663
|
+
if (maybeEnd && ch == "/") {
|
|
1664
|
+
state.tokenize = null;
|
|
1665
|
+
break;
|
|
1666
|
+
}
|
|
1667
|
+
maybeEnd = ch == "*";
|
|
1668
|
+
}
|
|
1669
|
+
return ["comment", "comment"];
|
|
1670
|
+
}
|
|
1671
|
+
mkCSS({
|
|
1672
|
+
name: "scss",
|
|
1673
|
+
mediaTypes,
|
|
1674
|
+
mediaFeatures,
|
|
1675
|
+
mediaValueKeywords,
|
|
1676
|
+
propertyKeywords,
|
|
1677
|
+
nonStandardPropertyKeywords,
|
|
1678
|
+
colorKeywords,
|
|
1679
|
+
valueKeywords,
|
|
1680
|
+
fontProperties,
|
|
1681
|
+
allowNested: true,
|
|
1682
|
+
lineComment: "//",
|
|
1683
|
+
tokenHooks: {
|
|
1684
|
+
"/": function(stream, state) {
|
|
1685
|
+
if (stream.eat("/")) {
|
|
1686
|
+
stream.skipToEnd();
|
|
1687
|
+
return ["comment", "comment"];
|
|
1688
|
+
} else if (stream.eat("*")) {
|
|
1689
|
+
state.tokenize = tokenCComment;
|
|
1690
|
+
return tokenCComment(stream, state);
|
|
1691
|
+
} else {
|
|
1692
|
+
return ["operator", "operator"];
|
|
1693
|
+
}
|
|
1694
|
+
},
|
|
1695
|
+
":": function(stream) {
|
|
1696
|
+
if (stream.match(/^\s*\{/, false))
|
|
1697
|
+
return [null, null];
|
|
1698
|
+
return false;
|
|
1699
|
+
},
|
|
1700
|
+
"$": function(stream) {
|
|
1701
|
+
stream.match(/^[\w-]+/);
|
|
1702
|
+
if (stream.match(/^\s*:/, false))
|
|
1703
|
+
return ["def", "variable-definition"];
|
|
1704
|
+
return ["variableName.special", "variable"];
|
|
1705
|
+
},
|
|
1706
|
+
"#": function(stream) {
|
|
1707
|
+
if (!stream.eat("{")) return false;
|
|
1708
|
+
return [null, "interpolation"];
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
});
|
|
1712
|
+
mkCSS({
|
|
1713
|
+
name: "less",
|
|
1714
|
+
mediaTypes,
|
|
1715
|
+
mediaFeatures,
|
|
1716
|
+
mediaValueKeywords,
|
|
1717
|
+
propertyKeywords,
|
|
1718
|
+
nonStandardPropertyKeywords,
|
|
1719
|
+
colorKeywords,
|
|
1720
|
+
valueKeywords,
|
|
1721
|
+
fontProperties,
|
|
1722
|
+
allowNested: true,
|
|
1723
|
+
lineComment: "//",
|
|
1724
|
+
tokenHooks: {
|
|
1725
|
+
"/": function(stream, state) {
|
|
1726
|
+
if (stream.eat("/")) {
|
|
1727
|
+
stream.skipToEnd();
|
|
1728
|
+
return ["comment", "comment"];
|
|
1729
|
+
} else if (stream.eat("*")) {
|
|
1730
|
+
state.tokenize = tokenCComment;
|
|
1731
|
+
return tokenCComment(stream, state);
|
|
1732
|
+
} else {
|
|
1733
|
+
return ["operator", "operator"];
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
"@": function(stream) {
|
|
1737
|
+
if (stream.eat("{")) return [null, "interpolation"];
|
|
1738
|
+
if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false;
|
|
1739
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
1740
|
+
if (stream.match(/^\s*:/, false))
|
|
1741
|
+
return ["def", "variable-definition"];
|
|
1742
|
+
return ["variableName", "variable"];
|
|
1743
|
+
},
|
|
1744
|
+
"&": function() {
|
|
1745
|
+
return ["atom", "atom"];
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
});
|
|
1749
|
+
const gss = mkCSS({
|
|
1750
|
+
name: "gss",
|
|
1751
|
+
documentTypes,
|
|
1752
|
+
mediaTypes,
|
|
1753
|
+
mediaFeatures,
|
|
1754
|
+
propertyKeywords,
|
|
1755
|
+
nonStandardPropertyKeywords,
|
|
1756
|
+
fontProperties,
|
|
1757
|
+
counterDescriptors,
|
|
1758
|
+
colorKeywords,
|
|
1759
|
+
valueKeywords,
|
|
1760
|
+
supportsAtComponent: true,
|
|
1761
|
+
tokenHooks: {
|
|
1762
|
+
"/": function(stream, state) {
|
|
1763
|
+
if (!stream.eat("*")) return false;
|
|
1764
|
+
state.tokenize = tokenCComment;
|
|
1765
|
+
return tokenCComment(stream, state);
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
export {
|
|
1770
|
+
gss,
|
|
1771
|
+
mkCSS
|
|
1772
|
+
};
|
|
1773
|
+
//# sourceMappingURL=css-DkSyTW67.js.map
|