File tree Expand file tree Collapse file tree 5 files changed +55
-5
lines changed Expand file tree Collapse file tree 5 files changed +55
-5
lines changed Original file line number Diff line number Diff line change 56
56
| idris | | | | ` idris2-lsp ` |
57
57
| iex | ✓ | | | |
58
58
| ini | ✓ | | | |
59
- | java | ✓ | | | ` jdtls ` |
59
+ | java | ✓ | ✓ | | ` jdtls ` |
60
60
| javascript | ✓ | ✓ | ✓ | ` typescript-language-server ` |
61
61
| jsdoc | ✓ | | | |
62
62
| json | ✓ | | ✓ | ` vscode-json-language-server ` |
Original file line number Diff line number Diff line change @@ -617,7 +617,7 @@ indent = { tab-width = 4, unit = " " }
617
617
618
618
[[grammar ]]
619
619
name = " java"
620
- source = { git = " https://github.com/tree-sitter/tree-sitter-java" , rev = " bd6186c24d5eb13b4623efac9d944dcc095c0dad " }
620
+ source = { git = " https://github.com/tree-sitter/tree-sitter-java" , rev = " 09d650def6cdf7f479f4b78f595e9ef5b58ce31e " }
621
621
622
622
[[language ]]
623
623
name = " ledger"
Original file line number Diff line number Diff line change 21
21
name: (identifier) @type )
22
22
(class_declaration
23
23
name: (identifier) @type )
24
+ (record_declaration
25
+ name: (identifier) @type )
24
26
(enum_declaration
25
27
name: (identifier) @type )
26
28
33
35
34
36
(constructor_declaration
35
37
name: (identifier) @type )
38
+ (compact_constructor_declaration
39
+ name: (identifier) @type )
36
40
37
41
(type_identifier) @type
38
42
59
63
(hex_integer_literal)
60
64
(decimal_integer_literal)
61
65
(octal_integer_literal)
66
+ (binary_integer_literal)
62
67
] @constant.numeric.integer
63
68
64
69
[
67
72
] @constant.numeric.float
68
73
69
74
(character_literal) @constant.character
70
- (string_literal) @string
75
+
76
+ [
77
+ (string_literal)
78
+ (text_block)
79
+ ] @string
71
80
72
81
[
73
82
(true)
74
83
(false)
75
84
(null_literal)
76
85
] @constant.builtin
77
86
78
- (comment) @comment
87
+ (line_comment) @comment
88
+ (block_comment) @comment
79
89
80
90
; Keywords
81
91
104
114
"module"
105
115
"native"
106
116
"new"
117
+ "non-sealed"
107
118
"open"
108
119
"opens"
109
120
"package"
121
+ "permits"
110
122
"private"
111
123
"protected"
112
124
"provides"
113
125
"public"
114
126
"requires"
127
+ "record"
115
128
"return"
129
+ "sealed"
116
130
"static"
117
131
"strictfp"
118
132
"switch"
127
141
"volatile"
128
142
"while"
129
143
"with"
144
+ "yield"
130
145
] @keyword
Original file line number Diff line number Diff line change 1
- ((comment) @injection.content
1
+ ([(line_comment) (block_comment)] @injection.content
2
2
(#set! injection.language "comment"))
Original file line number Diff line number Diff line change
1
+ (method_declaration
2
+ body: (_) @function.inside ) @function.around
3
+
4
+ (interface_declaration
5
+ body: (_) @class.inside ) @class.around
6
+
7
+ (class_declaration
8
+ body: (_) @class.inside ) @class.around
9
+
10
+ (record_declaration
11
+ body: (_) @class.inside ) @class.around
12
+
13
+ (enum_declaration
14
+ body: (_) @class.inside ) @class.around
15
+
16
+ (formal_parameters
17
+ ((_) @parameter.inside . ","? @parameter.around ) @parameter.around )
18
+
19
+ (type_parameters
20
+ ((_) @parameter.inside . ","? @parameter.around ) @parameter.around )
21
+
22
+ (type_arguments
23
+ ((_) @parameter.inside . ","? @parameter.around ) @parameter.around )
24
+
25
+ (argument_list
26
+ ((_) @parameter.inside . ","? @parameter.around ) @parameter.around )
27
+
28
+ [
29
+ (line_comment)
30
+ (block_comment)
31
+ ] @comment.inside
32
+
33
+ (line_comment)+ @comment.around
34
+
35
+ (block_comment) @comment.around
You can’t perform that action at this time.
0 commit comments