Added THIS to CALLABLE.
This commit is contained in:
parent
1c628e7883
commit
a1975583a7
|
@ -647,7 +647,7 @@
|
||||||
// Tokens which could legitimately be invoked or indexed. A opening
|
// Tokens which could legitimately be invoked or indexed. A opening
|
||||||
// parentheses or bracket following these tokens will be recorded as the start
|
// parentheses or bracket following these tokens will be recorded as the start
|
||||||
// of a function invocation or indexing operation.
|
// of a function invocation or indexing operation.
|
||||||
CALLABLE = ['IDENTIFIER', 'SUPER', ')', ']', '}', 'STRING', '@'];
|
CALLABLE = ['IDENTIFIER', 'SUPER', ')', ']', '}', 'STRING', '@', 'THIS'];
|
||||||
// Tokens that indicate an access -- keywords immediately following will be
|
// Tokens that indicate an access -- keywords immediately following will be
|
||||||
// treated as identifiers.
|
// treated as identifiers.
|
||||||
ACCESSORS = ['PROPERTY_ACCESS', 'PROTOTYPE_ACCESS', 'SOAK_ACCESS', '@'];
|
ACCESSORS = ['PROPERTY_ACCESS', 'PROTOTYPE_ACCESS', 'SOAK_ACCESS', '@'];
|
||||||
|
|
|
@ -511,7 +511,7 @@ NOT_REGEX: [
|
||||||
# Tokens which could legitimately be invoked or indexed. A opening
|
# Tokens which could legitimately be invoked or indexed. A opening
|
||||||
# parentheses or bracket following these tokens will be recorded as the start
|
# parentheses or bracket following these tokens will be recorded as the start
|
||||||
# of a function invocation or indexing operation.
|
# of a function invocation or indexing operation.
|
||||||
CALLABLE: ['IDENTIFIER', 'SUPER', ')', ']', '}', 'STRING', '@']
|
CALLABLE: ['IDENTIFIER', 'SUPER', ')', ']', '}', 'STRING', '@', 'THIS']
|
||||||
|
|
||||||
# Tokens that indicate an access -- keywords immediately following will be
|
# Tokens that indicate an access -- keywords immediately following will be
|
||||||
# treated as identifiers.
|
# treated as identifiers.
|
||||||
|
|
Loading…
Reference in New Issue