-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.tsqueryrc.json
More file actions
93 lines (93 loc) · 3.75 KB
/
.tsqueryrc.json
File metadata and controls
93 lines (93 loc) · 3.75 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
{
"$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",
"hint": "A hint",
"keyword": "A keyword",
"keyword.exception": "A keyword for exception handling",
"keyword.import": "An import keyword",
"label": "A label",
"link_text": "Link text",
"link_uri": "A link URI",
"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.super": "A superclass type",
"variable": "A variable",
"variable.parameter": "A function or method parameter",
"variable.special": "A special variable",
"variant": "A variant"
},
"indents": {
"end": "Captures closing brackets and braces.",
"indent": "Captures entire arrays and objects for indentation."
},
"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",
"_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."
}
}
}