This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-05-10 16:55:19 -04:00
|
|
|
export default {
|
|
|
|
|
LINK: 'link',
|
|
|
|
|
NAMESPACE: 'namespace',
|
|
|
|
|
REQUIRED: 'required',
|
|
|
|
|
SINGLETON: 'singleton',
|
|
|
|
|
KEEPALIVE: 'keepalive',
|
|
|
|
|
STATIC: 'static',
|
|
|
|
|
MEMBER: 'member',
|
|
|
|
|
RUNTIME: 'runtime',
|
|
|
|
|
IMPORT: 'import',
|
|
|
|
|
ASYNC: 'async',
|
|
|
|
|
AS: 'as',
|
2021-05-17 18:06:51 -04:00
|
|
|
FROM: 'from',
|
2021-05-12 00:15:53 -04:00
|
|
|
COMMA: ',',
|
2021-05-10 16:55:19 -04:00
|
|
|
STRING: /'(?:\\['\\]|[^\n'\\])*'/,
|
|
|
|
|
LSQBRACKET: '[',
|
|
|
|
|
RSQBRACKET: ']',
|
|
|
|
|
LPAREN: '(',
|
|
|
|
|
RPAREN: ')',
|
2021-05-17 18:06:51 -04:00
|
|
|
SPREAD_OPERATOR: '...',
|
2021-05-10 16:55:19 -04:00
|
|
|
DOTOP: '.',
|
|
|
|
|
JS_BLOCK: /\[\[[^]*?\n\]\]$/,
|
|
|
|
|
JS_BLOCK2: /{[^]*?\n}$/,
|
|
|
|
|
IDENTIFIER: /[a-zA-Z][a-zA-Z0-9]*/,
|
|
|
|
|
SPACE: { match: /\s+/, lineBreaks: true },
|
|
|
|
|
SEMICOLON: ';'
|
|
|
|
|
};
|