Skip to content

Commit 5872bc9

Browse files
committed
fix: apparently included files must still be committed to git
1 parent 51a4390 commit 5872bc9

File tree

274 files changed

+27137
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+27137
-5
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ jobs:
129129
uses: EndBug/add-and-commit@v9
130130
with:
131131
add:
132-
syntastica-queries/src/lib.rs syntastica-parsers/Cargo.toml
133-
syntastica-parsers-gitdep/Cargo.toml syntastica-parsers*/README.md
134-
syntastica-js/src/index.ts syntastica-themes/src
132+
syntastica-queries/generated_queries syntastica-queries/src/lib.rs
133+
syntastica-parsers/Cargo.toml syntastica-parsers-gitdep/Cargo.toml
134+
syntastica-parsers*/README.md syntastica-js/src/index.ts syntastica-themes/src
135135
committer_name: github-actions[bot]
136136
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
137137
message: 'chore: run codegen'

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/target
22
/Cargo.lock
33
/ignored/
4-
/syntastica-queries/generated_queries/
54
/syntastica-js/pkg/

syntastica-queries/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version.workspace = true
44
authors.workspace = true
55
documentation = "https://rubixdev.github.io/syntastica/syntastica_queries/"
66
edition.workspace = true
7-
include = ["generated_queries"]
87
license.workspace = true
98
repository.workspace = true
109
description = "Collection of tree-sitter queries for syntastica"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated Queries for `syntastica-queries`
2+
3+
**DO NOT EDIT THESE FILES!** All files in this directory were automatically
4+
generated by running `cargo xtask codegen` in the syntastica workspace. If you
5+
wish to make changes to any query, edit the appropriate file in
6+
[the `queries` directory at the repository root](../../queries) instead.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[
2+
","
3+
":"
4+
] @punctuation.delimiter
5+
6+
[
7+
"("
8+
")"
9+
"["
10+
"]"
11+
] @punctuation.bracket
12+
13+
[
14+
"+"
15+
"-"
16+
"*"
17+
] @operator
18+
19+
[
20+
"byte"
21+
"word"
22+
"dword"
23+
"qword"
24+
"ptr"
25+
"rel"
26+
] @keyword
27+
28+
(string) @string
29+
30+
(int) @number
31+
32+
(line_comment) @comment @spell
33+
34+
(instruction
35+
kind: (_) @function.call
36+
)
37+
38+
(meta
39+
kind: (_) @function.builtin
40+
)
41+
42+
(reg) @variable.builtin
43+
44+
(label
45+
(ident) @label
46+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[
2+
","
3+
":"
4+
] @punctuation.delimiter
5+
6+
[
7+
"("
8+
")"
9+
"["
10+
"]"
11+
] @punctuation.bracket
12+
13+
[
14+
"+"
15+
"-"
16+
"*"
17+
] @operator
18+
19+
[
20+
"byte"
21+
"word"
22+
"dword"
23+
"qword"
24+
"ptr"
25+
"rel"
26+
] @keyword
27+
28+
(string) @string
29+
30+
(int) @number
31+
32+
(line_comment) @comment @spell
33+
34+
(instruction
35+
kind: (_) @function.call
36+
)
37+
38+
(meta
39+
kind: (_) @function.builtin
40+
)
41+
42+
(reg) @variable.builtin
43+
44+
(label
45+
(ident) @label
46+
)

syntastica-queries/generated_queries/asm/injections.scm

Whitespace-only changes.

syntastica-queries/generated_queries/asm/injections_crates_io.scm

Whitespace-only changes.

syntastica-queries/generated_queries/asm/locals.scm

Whitespace-only changes.

syntastica-queries/generated_queries/asm/locals_crates_io.scm

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
(
2+
(program
3+
.
4+
(comment) @preproc
5+
)
6+
(#match? @preproc "^#!\\/")
7+
)
8+
9+
(regex) @string.regex
10+
11+
(case_item
12+
value: (word) @parameter
13+
)
14+
15+
(
16+
(variable_name) @constant
17+
(#match? @constant "^[A-Z][A-Z_0-9]*$")
18+
)
19+
20+
(variable_name) @variable
21+
22+
(expansion
23+
[
24+
"${"
25+
"}"
26+
] @punctuation.bracket
27+
)
28+
29+
(file_redirect
30+
descriptor: (file_descriptor) @operator
31+
destination: (word) @parameter
32+
)
33+
34+
(
35+
(word) @number
36+
(#match? @number "^[0-9]+$")
37+
)
38+
39+
(command
40+
argument: [
41+
(word) @parameter
42+
(concatenation
43+
(word) @parameter
44+
)
45+
]
46+
)
47+
48+
(
49+
(command_name
50+
(word) @function.builtin
51+
)
52+
(#match? @function.builtin "^(alias|bg|bind|break|builtin|caller|cd|command|compgen|complete|compopt|continue|coproc|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|mapfile|popd|printf|pushd|pwd|read|readarray|return|set|shift|shopt|source|suspend|test|time|times|trap|type|typeset|ulimit|umask|unalias|wait)$")
53+
)
54+
55+
(command_name
56+
(word) @function.call
57+
)
58+
59+
(function_definition
60+
name: (word) @function
61+
)
62+
63+
(process_substitution
64+
[
65+
"<("
66+
")"
67+
] @punctuation.bracket
68+
)
69+
70+
(command_substitution
71+
[
72+
"$("
73+
")"
74+
] @punctuation.bracket
75+
)
76+
77+
(test_operator) @string
78+
79+
(comment) @comment @spell
80+
81+
(
82+
(word) @boolean
83+
(#match? @boolean "^(true|false)$")
84+
)
85+
86+
(
87+
(word) @constant.builtin
88+
(#match? @constant.builtin "^SIG(HUP|INT|QUIT|ILL|TRAP|ABRT|BUS|FPE|KILL|USR[12]|SEGV|PIPE|ALRM|TERM|STKFLT|CHLD|CONT|STOP|TSTP|TT(IN|OU)|URG|XCPU|XFSZ|VTALRM|PROF|WINCH|IO|PWR|SYS|RTMIN([+]([1-9]|1[0-5]))?|RTMAX(-([1-9]|1[0-4]))?)$")
89+
)
90+
91+
(special_variable_name) @constant
92+
93+
"function" @keyword.function
94+
95+
[
96+
"declare"
97+
"export"
98+
"local"
99+
"readonly"
100+
"unset"
101+
] @keyword
102+
103+
[
104+
"for"
105+
"do"
106+
"done"
107+
"select"
108+
"until"
109+
"while"
110+
] @repeat
111+
112+
[
113+
"if"
114+
"then"
115+
"else"
116+
"elif"
117+
"fi"
118+
"case"
119+
"in"
120+
"esac"
121+
] @conditional
122+
123+
(variable_assignment
124+
(word) @string
125+
)
126+
127+
[
128+
(string)
129+
(raw_string)
130+
(ansi_c_string)
131+
(heredoc_body)
132+
] @string @spell
133+
134+
[
135+
">"
136+
">>"
137+
"<"
138+
"<<"
139+
"&"
140+
"&&"
141+
"|"
142+
"||"
143+
"="
144+
"=~"
145+
"=="
146+
"!="
147+
] @operator
148+
149+
["$"] @punctuation.special
150+
151+
[
152+
";"
153+
";;"
154+
(heredoc_start)
155+
] @punctuation.delimiter
156+
157+
[
158+
"("
159+
")"
160+
"(("
161+
"))"
162+
"{"
163+
"}"
164+
"["
165+
"]"
166+
"[["
167+
"]]"
168+
] @punctuation.bracket
169+
170+
(expansion
171+
"${" @punctuation.special
172+
"}" @punctuation.special
173+
) @none
174+
175+
(simple_expansion) @none

0 commit comments

Comments
 (0)