Skip to content

Commit 2834895

Browse files
clasonlewis6991
authored andcommitted
refactor(queries): format
1 parent 26172b8 commit 2834895

Some content is hidden

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

76 files changed

+778
-823
lines changed

queries/ada/context.scm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
(full_type_declaration
22
(record_type_definition
3-
(record_definition (_) @context.end)
4-
)
5-
) @context
3+
(record_definition
4+
(_) @context.end))) @context
65

7-
8-
([
6+
[
97
(loop_statement)
108
(case_statement)
119
(subprogram_body)
1210
(package_declaration)
13-
] @context)
11+
] @context

queries/apex/context.scm

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
(if_statement
2-
consequence: (_) @context.end
3-
) @context
2+
consequence: (_) @context.end) @context
43

54
(method_declaration
6-
body: (_) @context.end
7-
) @context
5+
body: (_) @context.end) @context
86

97
(for_statement
10-
body: (_) @context.end
11-
) @context
8+
body: (_) @context.end) @context
129

1310
(enhanced_for_statement
14-
body: (_) @context.end
15-
) @context
11+
body: (_) @context.end) @context
1612

1713
(expression_statement) @context

queries/bash/context.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
([
1+
[
22
(for_statement)
33
(c_style_for_statement)
44
(function_definition)
55
(if_statement)
66
(case_statement)
77
(case_item)
88
(while_statement)
9-
] @context)
9+
] @context

queries/c/context.scm

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,49 @@
1-
21
(preproc_if
3-
(_) (_) @context.end
4-
) @context
2+
(_)
3+
(_) @context.end) @context
54

65
(preproc_ifdef
7-
name: (identifier) (_) @context.end
8-
) @context
6+
name: (identifier)
7+
(_) @context.end) @context
98

109
(function_definition
11-
body: (_ (_) @context.end)
12-
) @context
10+
body: (_
11+
(_) @context.end)) @context
1312

1413
(for_statement
15-
(compound_statement) @context.end
16-
) @context
14+
(compound_statement) @context.end) @context
1715

1816
(if_statement
19-
consequence: (_ (_) @context.end)
20-
) @context
17+
consequence: (_
18+
(_) @context.end)) @context
2119

2220
(else_clause
23-
(_ (_) @context.end)
24-
) @context
21+
(_
22+
(_) @context.end)) @context
2523

2624
(while_statement
27-
body: (_ (_) @context.end)
28-
) @context
25+
body: (_
26+
(_) @context.end)) @context
2927

3028
(do_statement
31-
body: (_ (_) @context.end)
32-
) @context
29+
body: (_
30+
(_) @context.end)) @context
3331

3432
(struct_specifier
35-
body: (_ (_) @context.end)
36-
) @context
33+
body: (_
34+
(_) @context.end)) @context
3735

3836
(enum_specifier
39-
body: (_ (_) @context.end)
40-
) @context
37+
body: (_
38+
(_) @context.end)) @context
4139

4240
(switch_statement
43-
body: (_) @context.end
44-
) @context
41+
body: (_) @context.end) @context
4542

4643
(case_statement
47-
value: (_) (_) @context.end
48-
) @context
44+
value: (_)
45+
(_) @context.end) @context
4946

5047
(declaration
51-
declarator: (_ (_) @context.end)
52-
) @context
48+
declarator: (_
49+
(_) @context.end)) @context

queries/c_sharp/context.scm

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,51 @@
11
(interface_declaration
2-
body: (_) @context.end
3-
) @context
2+
body: (_) @context.end) @context
43

54
(class_declaration
6-
body: (_) @context.end
7-
) @context
5+
body: (_) @context.end) @context
86

97
(enum_declaration
10-
body: (_) @context.end
11-
) @context
8+
body: (_) @context.end) @context
129

1310
(struct_declaration
14-
body: (_) @context.end
15-
) @context
11+
body: (_) @context.end) @context
1612

1713
(record_declaration
18-
body: (_) @context.end
19-
) @context
14+
body: (_) @context.end) @context
2015

2116
(namespace_declaration
22-
body: (_) @context.end
23-
) @context
17+
body: (_) @context.end) @context
2418

2519
(constructor_declaration
26-
body: (_) @context.end
27-
) @context
20+
body: (_) @context.end) @context
2821

2922
(destructor_declaration
30-
body: (_) @context.end
31-
) @context
23+
body: (_) @context.end) @context
3224

3325
(method_declaration
34-
body: (_) @context.end
35-
) @context
26+
body: (_) @context.end) @context
3627

3728
(switch_statement
38-
body: (_) @context.end
39-
) @context
29+
body: (_) @context.end) @context
4030

4131
(foreach_statement
42-
body: (_) @context.end
43-
) @context
32+
body: (_) @context.end) @context
4433

4534
(for_statement
46-
body: (_) @context.end
47-
) @context
35+
body: (_) @context.end) @context
4836

4937
(if_statement
50-
consequence: (_) @context.end
51-
) @context
38+
consequence: (_) @context.end) @context
5239

53-
([
40+
[
5441
(do_statement)
5542
(while_statement)
56-
] @context)
43+
] @context
5744

5845
(try_statement
59-
body: (_) @context.end
60-
) @context
46+
body: (_) @context.end) @context
6147

6248
(catch_clause
63-
body: (_) @context.end
64-
) @context
49+
body: (_) @context.end) @context
6550

6651
(finally_clause) @context

queries/capnp/context.scm

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
(enum
2-
"{" (_) @context.end
3-
) @context
2+
"{"
3+
(_) @context.end) @context
44

55
(struct
6-
"{" (_) @context.end
7-
) @context
6+
"{"
7+
(_) @context.end) @context
88

99
(group
10-
"{" (_) @context.end
11-
) @context
10+
"{"
11+
(_) @context.end) @context
1212

1313
(union
14-
"{" (_) @context.end
15-
) @context
14+
"{"
15+
(_) @context.end) @context
1616

1717
(interface
18-
"{" (_) @context.end
19-
) @context
18+
"{"
19+
(_) @context.end) @context
2020

2121
(field
22-
"=" (_) @context.end
23-
) @context
22+
"="
23+
(_) @context.end) @context
2424

2525
(_
26-
(struct_shorthand "(" (_) @context.end)
27-
) @context
26+
(struct_shorthand
27+
"("
28+
(_) @context.end)) @context
2829

2930
(_
30-
(const_list "[" (_) @context.end)
31-
) @context
31+
(const_list
32+
"["
33+
(_) @context.end)) @context

queries/clojure/context.scm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
([(list_lit)
1+
[
2+
(list_lit)
23
(map_lit)
34
(vec_lit)
4-
] @context)
5+
] @context

queries/cmake/context.scm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[
2-
(if_condition)
3-
(foreach_loop)
4-
(while_loop)
5-
(function_def)
6-
(macro_def)
7-
(block_def)
8-
(normal_command)
2+
(if_condition)
3+
(foreach_loop)
4+
(while_loop)
5+
(function_def)
6+
(macro_def)
7+
(block_def)
8+
(normal_command)
99
] @context

queries/cpp/context.scm

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
; inherits: c
22

33
(for_range_loop
4-
body: (_ (_) @context.end)
5-
) @context
4+
body: (_
5+
(_) @context.end)) @context
66

77
(namespace_definition
8-
body: (_ (_) @context.end)
9-
) @context
8+
body: (_
9+
(_) @context.end)) @context
1010

1111
(class_specifier
12-
body: (_ (_) @context.end)
13-
) @context
12+
body: (_
13+
(_) @context.end)) @context
1414

1515
(linkage_specification
16-
body: (declaration_list (_) @context.end)
17-
) @context
16+
body: (declaration_list
17+
(_) @context.end)) @context
1818

1919
(lambda_expression
20-
body: (_ (_) @context.end)
21-
) @context
20+
body: (_
21+
(_) @context.end)) @context

queries/css/context.scm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
(keyframe_block
2-
(block (_) @context.end)
3-
) @context
2+
(block
3+
(_) @context.end)) @context
44

55
(at_rule
6-
(block (_) @context.end)
7-
) @context
6+
(block
7+
(_) @context.end)) @context
88

99
(supports_statement
10-
(block (_) @context.end)
11-
) @context
10+
(block
11+
(_) @context.end)) @context
1212

1313
(keyframes_statement
14-
(keyframe_block_list (_) @context.end)
15-
) @context
14+
(keyframe_block_list
15+
(_) @context.end)) @context
1616

1717
(media_statement
18-
(block (_) @context.end)
19-
) @context
18+
(block
19+
(_) @context.end)) @context
2020

2121
(rule_set
22-
(block (_) @context.end)
23-
)@context
22+
(block
23+
(_) @context.end)) @context

0 commit comments

Comments
 (0)