@willbooster/tree-sitter-java 9.0.1 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grammar.js +3 -6
- package/package.json +1 -1
- package/tree-sitter-java.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -272,7 +272,7 @@ module.exports = grammar({
|
|
|
272
272
|
'"""',
|
|
273
273
|
repeat(choice(
|
|
274
274
|
alias($._multiline_string_fragment, $.multiline_string_fragment),
|
|
275
|
-
$.
|
|
275
|
+
$.escape_sequence,
|
|
276
276
|
$.string_interpolation,
|
|
277
277
|
)),
|
|
278
278
|
'"""',
|
|
@@ -280,7 +280,7 @@ module.exports = grammar({
|
|
|
280
280
|
string_fragment: _ => token.immediate(prec(1, /[^"\\]+/)),
|
|
281
281
|
_multiline_string_fragment: _ => choice(
|
|
282
282
|
/[^"\\]+/,
|
|
283
|
-
/"
|
|
283
|
+
/"[^"\\]*/,
|
|
284
284
|
),
|
|
285
285
|
|
|
286
286
|
string_interpolation: $ => seq(
|
|
@@ -289,10 +289,6 @@ module.exports = grammar({
|
|
|
289
289
|
'}',
|
|
290
290
|
),
|
|
291
291
|
|
|
292
|
-
_escape_sequence: $ => choice(
|
|
293
|
-
prec(2, token.immediate(seq('\\', /[^bfnrts'\"\\]/))),
|
|
294
|
-
prec(1, $.escape_sequence),
|
|
295
|
-
),
|
|
296
292
|
escape_sequence: _ => token.immediate(choice(
|
|
297
293
|
seq(/\\u+005[cC]/, choice(
|
|
298
294
|
/(?:[0-3]|\\u+003[0-3])(?:[0-7]|\\u+003[0-7]){0,2}/,
|
|
@@ -302,6 +298,7 @@ module.exports = grammar({
|
|
|
302
298
|
seq(
|
|
303
299
|
choice('\\', /\\u+005[cC]/),
|
|
304
300
|
choice(
|
|
301
|
+
'\r\n',
|
|
305
302
|
/[^xu0-7]/,
|
|
306
303
|
/(?:[0-3][0-7]{0,2}|[4-7][0-7]?)/,
|
|
307
304
|
/x[0-9a-fA-F]{2}/,
|
package/package.json
CHANGED
package/tree-sitter-java.wasm
CHANGED
|
Binary file
|