Repository navigation
Expand file tree
/
Copy path.tsqueryrc.json
More file actions
157 lines (157 loc) · 6.49 KB
/
Copy path.tsqueryrc.json
File metadata and controls
157 lines (157 loc) · 6.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"$schema": "https://raw.githubusercontent.com/ribru17/ts_query_ls/refs/heads/master/schemas/config.json",
"parser_install_directories": ["./grammars"],
"language_retrieval_patterns": ["languages/([^/]+)/[^/]+\\.scm"],
"parser_aliases": {
"erb": "embedded_template",
"html-erb": "embedded_template",
"js-erb": "embedded_template",
"yaml-erb": "embedded_template"
},
"valid_captures": {
"brackets": {
"open": "Captures opening brackets, braces, and quotes.",
"close": "Captures closing brackets, braces, and quotes."
},
"highlights": {
"attribute": "An attribute",
"boolean": "A boolean value",
"comment": "A comment",
"comment.doc": "A documentation comment",
"constant": "A constant",
"constant.builtin": "A built-in constant",
"constructor": "A constructor",
"embedded": "Embedded content",
"emphasis": "Emphasized text",
"emphasis.strong": "Strongly emphasized text",
"enum": "An enumeration",
"function": "A function",
"function.builtin": "A built-in function",
"function.method": "A method",
"function.method.builtin": "A built-in method",
"function.method.definition": "A method definition",
"hint": "A hint",
"keyword": "A keyword",
"keyword.control.conditional": "A conditional control flow keyword",
"keyword.control.repeat": "A loop control flow keyword",
"keyword.control.return": "A control flow return keyword",
"keyword.exception": "An exception handling keyword",
"keyword.function": "A function definition keyword",
"keyword.import": "An import keyword",
"keyword.modifier": "A modifier keyword",
"keyword.operator": "An operator keyword",
"keyword.type": "A type keyword",
"label": "A label",
"link_text": "Link text",
"link_uri": "A link URI",
"module": "A module",
"number": "A numeric value",
"operator": "An operator",
"predictive": "Predictive text",
"preproc": "A preprocessor directive",
"primary": "A primary element",
"property": "A property",
"punctuation": "Punctuation",
"punctuation.bracket": "A bracket",
"punctuation.delimiter": "A delimiter",
"punctuation.list_marker": "A list marker",
"punctuation.special": "Special punctuation",
"string": "A string literal",
"string.escape": "An escaped character in a string",
"string.regex": "A regular expression",
"string.special": "A special string",
"string.special.symbol": "A special symbol",
"tag": "A tag",
"tag.doctype": "A doctype (e.g., in HTML)",
"text.literal": "Literal text",
"title": "A title",
"type": "A type",
"type.builtin": "A built-in type",
"type.super": "A superclass type",
"variable": "A variable",
"variable.builtin": "A built-in variable",
"variable.member": "A member variable",
"variable.parameter": "A function or method parameter",
"variable.parameter.keyword": "A function or method keyword parameter",
"variable.special": "A special variable",
"variable.special.class": "A class variable",
"variable.special.instance": "An instance variable",
"variant": "A variant"
},
"indents": {
"indent": "Defines an indentation range using the captured node",
"start": "Moves the start of an `@indent` range to the end of the captured node",
"end": "Moves the end of an `@indent` range to the start of the captured node",
"outdent": "Ends the innermost indentation range at the start of the captured node"
},
"outline": {
"name": "Captures the content of object keys.",
"item": "Captures the entire key-value pair.",
"context": "Captures elements that provide context for the outline item.",
"context.extra": "Captures additional contextual information for the outline item.",
"annotation": "Captures nodes that annotate outline item (doc comments, attributes, decorators)."
},
"runnables": {
"name": "Captures the \"scripts\" key",
"run": "Captures the script name",
"script": "Also captures the script name (for different purposes)",
"RUBY_TEST_NAME": "A ruby test name",
"superclass": "A ruby test class",
"_ruby-test": "A ruby test name"
},
"textobjects": {
"function.around": "An entire function definition or equivalent small section of a file.",
"function.inside": "The function body (the stuff within the braces).",
"class.around": "An entire class definition or equivalent large section of a file.",
"class.inside": "The contents of a class definition.",
"comment.around": "An entire comment (e.g. all adjacent line comments, or a block comment).",
"comment.inside": "The contents of a comment."
}
},
"valid_predicates": {
"eq": {
"description": "Matches if the capture's text is equal to the provided string or another capture",
"parameters": [{ "type": "capture" }, { "type": "any" }]
},
"match": {
"description": "Matches if the capture's text matches the provided regular expression",
"parameters": [{ "type": "capture" }, { "type": "string" }]
},
"any-of": {
"description": "Matches if the capture's text is equal to any of the provided strings",
"parameters": [
{ "type": "capture" },
{ "type": "string", "arity": "variadic" }
]
},
"any-eq": {
"description": "Matches if any node in a quantified capture equals the provided value",
"not": false,
"parameters": [{ "type": "capture" }, { "type": "any" }]
},
"any-not-eq": {
"description": "Matches if any node in a quantified capture does not equal the provided value",
"not": false,
"parameters": [{ "type": "capture" }, { "type": "any" }]
},
"any-match": {
"description": "Matches if any node in a quantified capture matches the provided regex",
"not": false,
"parameters": [{ "type": "capture" }, { "type": "string" }]
},
"any-not-match": {
"description": "Matches if any node in a quantified capture does not match the provided regex",
"not": false,
"parameters": [{ "type": "capture" }, { "type": "string" }]
}
},
"valid_directives": {
"set": {
"description": "Associates key-value metadata with a pattern or capture",
"parameters": [
{ "type": "string", "description": "key" },
{ "type": "string", "description": "value", "arity": "optional" }
]
}
}
}