aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/css-tree/lib/syntax/scope/default.js
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-14 14:46:37 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-14 14:46:37 -0800
commitafa87af01c79a9baa539f2992d32154d2a4739bd (patch)
tree92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/css-tree/lib/syntax/scope/default.js
parent3b927e84d200402281f68181cd4253bc77e5528d (diff)
downloadneko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz
neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2
neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip
task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq
Diffstat (limited to 'vanilla/node_modules/css-tree/lib/syntax/scope/default.js')
-rw-r--r--vanilla/node_modules/css-tree/lib/syntax/scope/default.js85
1 files changed, 0 insertions, 85 deletions
diff --git a/vanilla/node_modules/css-tree/lib/syntax/scope/default.js b/vanilla/node_modules/css-tree/lib/syntax/scope/default.js
deleted file mode 100644
index 8f14035..0000000
--- a/vanilla/node_modules/css-tree/lib/syntax/scope/default.js
+++ /dev/null
@@ -1,85 +0,0 @@
-import {
- Ident,
- String as StringToken,
- Number as NumberToken,
- Function as FunctionToken,
- Url,
- Hash,
- Dimension,
- Percentage,
- LeftParenthesis,
- LeftSquareBracket,
- Comma,
- Delim
-} from '../../tokenizer/index.js';
-
-const NUMBERSIGN = 0x0023; // U+0023 NUMBER SIGN (#)
-const ASTERISK = 0x002A; // U+002A ASTERISK (*)
-const PLUSSIGN = 0x002B; // U+002B PLUS SIGN (+)
-const HYPHENMINUS = 0x002D; // U+002D HYPHEN-MINUS (-)
-const SOLIDUS = 0x002F; // U+002F SOLIDUS (/)
-const U = 0x0075; // U+0075 LATIN SMALL LETTER U (u)
-
-export default function defaultRecognizer(context) {
- switch (this.tokenType) {
- case Hash:
- return this.Hash();
-
- case Comma:
- return this.Operator();
-
- case LeftParenthesis:
- return this.Parentheses(this.readSequence, context.recognizer);
-
- case LeftSquareBracket:
- return this.Brackets(this.readSequence, context.recognizer);
-
- case StringToken:
- return this.String();
-
- case Dimension:
- return this.Dimension();
-
- case Percentage:
- return this.Percentage();
-
- case NumberToken:
- return this.Number();
-
- case FunctionToken:
- return this.cmpStr(this.tokenStart, this.tokenEnd, 'url(')
- ? this.Url()
- : this.Function(this.readSequence, context.recognizer);
-
- case Url:
- return this.Url();
-
- case Ident:
- // check for unicode range, it should start with u+ or U+
- if (this.cmpChar(this.tokenStart, U) &&
- this.cmpChar(this.tokenStart + 1, PLUSSIGN)) {
- return this.UnicodeRange();
- } else {
- return this.Identifier();
- }
-
- case Delim: {
- const code = this.charCodeAt(this.tokenStart);
-
- if (code === SOLIDUS ||
- code === ASTERISK ||
- code === PLUSSIGN ||
- code === HYPHENMINUS) {
- return this.Operator(); // TODO: replace with Delim
- }
-
- // TODO: produce a node with Delim node type
-
- if (code === NUMBERSIGN) {
- this.error('Hex or identifier is expected', this.tokenStart + 1);
- }
-
- break;
- }
- }
-};