-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathtextobjects.scm
More file actions
79 lines (61 loc) · 1.18 KB
/
Copy pathtextobjects.scm
File metadata and controls
79 lines (61 loc) · 1.18 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
; methods
(method_declaration) @function.around
(method_declaration
body: (block
"{"
(_)* @function.inside
"}"))
; constructors
(constructor_declaration) @function.around
(constructor_declaration
body: (constructor_body
"{"
(_)* @function.inside
"}"))
; lambdas
(lambda_expression) @function.around
(lambda_expression
body: (block
"{"
(_)* @function.inside
"}"))
(lambda_expression
body: (_) @function.inside)
; classes
(class_declaration) @class.around
(class_declaration
body: (class_body
"{"
(_)* @class.inside
"}"))
; interfaces
(interface_declaration) @class.around
(interface_declaration
body: (interface_body
"{"
(_)* @class.inside
"}"))
; enums
(enum_declaration) @class.around
(enum_declaration
body: (enum_body
"{"
_* @class.inside
"}"))
; records
(record_declaration) @class.around
(record_declaration
body: (class_body
"{"
(_)* @class.inside
"}"))
; annotations
(annotation_type_declaration) @class.around
(annotation_type_declaration
(annotation_type_body
"{"
(_)* @class.inside
"}"))
; comments
((line_comment)+) @comment.around
(block_comment) @comment.around