Files
markitect-main/node_modules/css-tree/cjs/syntax/pseudo/lang.cjs
tegwick c5a5b26797
Some checks failed
Test Suite / code-quality (push) Has been cancelled
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
refactor: Still trying to reorganize edit mode to be more robust
2025-11-04 21:59:22 +01:00

38 lines
820 B
JavaScript

'use strict';
const types = require('../../tokenizer/types.cjs');
function parseLanguageRangeList() {
const children = this.createList();
this.skipSC();
loop: while (!this.eof) {
switch (this.tokenType) {
case types.Ident:
children.push(this.Identifier());
break;
case types.String:
children.push(this.String());
break;
case types.Comma:
children.push(this.Operator());
break;
case types.RightParenthesis:
break loop;
default:
this.error('Identifier, string or comma is expected');
}
this.skipSC();
}
return children;
}
exports.parseLanguageRangeList = parseLanguageRangeList;