aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/typescript/highlights.scm188
-rw-r--r--queries/typescript/locals.scm35
2 files changed, 0 insertions, 223 deletions
diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm
index 92820105b..dd0dd778f 100644
--- a/queries/typescript/highlights.scm
+++ b/queries/typescript/highlights.scm
@@ -1,192 +1,4 @@
-; Types
-
-; Javascript
-; Special identifiers
-;--------------------
-
-((identifier) @constant
- (#match? @constant "^[A-Z_][A-Z\\d_]+$"))
-
-((shorthand_property_identifier) @constant
- (#match? @constant "^[A-Z_][A-Z\\d_]+$"))
-
-((identifier) @constructor
- (#match? @constructor "^[A-Z]"))
-
-((identifier) @variable.builtin
- (#match? @variable.builtin "^(arguments|module|console|window|document)$"))
-
-((identifier) @function.builtin
- (#eq? @function.builtin "require"))
-
-; Function and method definitions
-;--------------------------------
-
-(function
- name: (identifier) @function)
-(function_declaration
- name: (identifier) @function)
-(method_definition
- name: (property_identifier) @function.method)
-
-(pair
- key: (property_identifier) @function.method
- value: (function))
-(pair
- key: (property_identifier) @function.method
- value: (arrow_function))
-
-(assignment_expression
- left: (member_expression
- property: (property_identifier) @function.method)
- right: (arrow_function))
-(assignment_expression
- left: (member_expression
- property: (property_identifier) @function.method)
- right: (function))
-
-(variable_declarator
- name: (identifier) @function
- value: (arrow_function))
-(variable_declarator
- name: (identifier) @function
- value: (function))
-
-(assignment_expression
- left: (identifier) @function
- right: (arrow_function))
-(assignment_expression
- left: (identifier) @function
- right: (function))
-
-; Function and method calls
-;--------------------------
-
-(call_expression
- function: (identifier) @function)
-
-(call_expression
- function: (member_expression
- property: (property_identifier) @function.method))
-
-; Variables
-;----------
-
-(formal_parameters (identifier) @variable.parameter)
-
-(identifier) @variable
-
-; Properties
-;-----------
-
-(property_identifier) @property
-
-; Literals
-;---------
-
-(this) @variable.builtin
-(super) @variable.builtin
-
-(true) @constant.builtin
-(false) @constant.builtin
-(null) @constant.builtin
-(comment) @comment
-(string) @string
-(regex) @string.special
-(template_string) @string
-(number) @number
-
-; Punctuation
-;------------
-
-(template_substitution
- "${" @punctuation.special
- "}" @punctuation.special) @embedded
-
-";" @punctuation.delimiter
-"." @punctuation.delimiter
-"," @punctuation.delimiter
-
-"--" @operator
-"-" @operator
-"-=" @operator
-"&&" @operator
-"+" @operator
-"++" @operator
-"+=" @operator
-"<" @operator
-"<<" @operator
-"=" @operator
-"==" @operator
-"===" @operator
-"=>" @operator
-">" @operator
-">>" @operator
-"||" @operator
-"??" @operator
-
-"(" @punctuation.bracket
-")" @punctuation.bracket
-"[" @punctuation.bracket
-"]" @punctuation.bracket
-"{" @punctuation.bracket
-"}" @punctuation.bracket
-
-; Keywords
-;----------
-
[
-"if"
-"else"
-"switch"
-"case"
-"default"
-] @conditional
-
-[
-"import"
-"from"
-"as"
-] @include
-
-[
-"for"
-"of"
-"do"
-"while"
-"continue"
-] @repeat
-
-[
-"async"
-"await"
-"break"
-"catch"
-"class"
-"const"
-"debugger"
-"delete"
-"export"
-"extends"
-"finally"
-"function"
-"get"
-"in"
-"instanceof"
-"let"
-"new"
-"return"
-"set"
-"static"
-"switch"
-"target"
-"throw"
-"try"
-"typeof"
-"var"
-"void"
-"with"
-"yield"
"abstract"
"declare"
"enum"
diff --git a/queries/typescript/locals.scm b/queries/typescript/locals.scm
index d308e9873..cb064b823 100644
--- a/queries/typescript/locals.scm
+++ b/queries/typescript/locals.scm
@@ -1,37 +1,2 @@
-; Scopes
-;-------
-
-(statement_block) @scope
-(function) @scope
-(arrow_function) @scope
-(function_declaration) @scope
-(method_definition) @scope
-
-; Definitions
-;------------
-
-(formal_parameters
- (identifier) @definition)
-
-(formal_parameters
- (object_pattern
- (identifier) @definition))
-
-(formal_parameters
- (object_pattern
- (shorthand_property_identifier) @definition))
-
-(formal_parameters
- (array_pattern
- (identifier) @definition))
-
-(variable_declarator
- name: (identifier) @definition)
-
-; References
-;------------
-
-(identifier) @reference
-
(required_parameter (identifier) @definition)
(optional_parameter (identifier) @definition)