feat(core): introduce a CSS lexer/parser

This commit is contained in:
Matias Niemelä
2016-02-02 10:37:08 +02:00
committed by Alex Eagle
parent df1f78e302
commit 293fa5505b
7 changed files with 2786 additions and 2 deletions

View File

@ -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);
}