mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 09:59:25 +00:00
re-add throws as a keyword
This commit is contained in:
@@ -115,7 +115,7 @@ function tokenize(source, offset = 0, length = source.length) {
|
|||||||
* \w+ word
|
* \w+ word
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
const word_re = /^(?:(true|false)|(this|super|null)|(int|long|short|byte|float|double|char|boolean|void)|(new)|(instanceof)|(public|private|protected|static|final|abstract|native|volatile|transient)|(if|else|while|for|do|try|catch|finally|switch|case|default|return|break|continue|throw|synchronized|assert)|(class|enum|interface)|(extends|implements)|(package|import)|(.+))$/;
|
const word_re = /^(?:(true|false)|(this|super|null)|(int|long|short|byte|float|double|char|boolean|void)|(new)|(instanceof)|(public|private|protected|static|final|abstract|native|volatile|transient)|(if|else|while|for|do|try|catch|finally|switch|case|default|return|break|continue|throw|synchronized|assert)|(class|enum|interface)|(extends|implements|throws)|(package|import)|(.+))$/;
|
||||||
const word_token_types = [
|
const word_token_types = [
|
||||||
'boolean-literal',
|
'boolean-literal',
|
||||||
'object-literal',
|
'object-literal',
|
||||||
@@ -126,7 +126,7 @@ function tokenize(source, offset = 0, length = source.length) {
|
|||||||
'statement-kw',
|
'statement-kw',
|
||||||
'type-kw',
|
'type-kw',
|
||||||
'package-kw',
|
'package-kw',
|
||||||
'extimp-kw',
|
'eit-kw',
|
||||||
'ident'
|
'ident'
|
||||||
]
|
]
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user