feat(core): introduce a CSS lexer/parser
This commit is contained in:

committed by
Alex Eagle

parent
df1f78e302
commit
293fa5505b
@ -153,7 +153,6 @@ export const $BAR = 124;
|
||||
export const $RBRACE = 125;
|
||||
const $NBSP = 160;
|
||||
|
||||
|
||||
export class ScannerError extends BaseException {
|
||||
constructor(public message) { super(); }
|
||||
|
||||
@ -379,7 +378,7 @@ class _Scanner {
|
||||
}
|
||||
}
|
||||
|
||||
function isWhitespace(code: number): boolean {
|
||||
export function isWhitespace(code: number): boolean {
|
||||
return (code >= $TAB && code <= $SPACE) || (code == $NBSP);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user