tree-sitter-objectscript 1.9.21 → 1.10.0

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/common/scanner.h CHANGED
@@ -324,12 +324,15 @@ static bool lex_fenced_text(TSLexer *lexer,
324
324
  const char *comment_end = "-->";
325
325
  const char *script_start = "script";
326
326
  const char *script_end = "</script>";
327
- while (iswspace(lexer->lookahead) || lexer->lookahead == 0x2028 || lexer->lookahead == 0x2029 || iswalnum(lexer->lookahead)) {
327
+ while (iswspace(lexer->lookahead) || lexer->lookahead == 0x2028 || lexer->lookahead == 0x2029) {
328
328
  advance(lexer);
329
329
  }
330
330
  if (lexer->lookahead == '<') {
331
331
  is_xml = true;
332
332
  }
333
+ while(iswalnum(lexer->lookahead) || iswspace(lexer->lookahead)) {
334
+ advance(lexer);
335
+ }
333
336
  while (!lexer->eof(lexer)) {
334
337
  while (iswspace(lexer->lookahead) || lexer->lookahead == 0x2028 || lexer->lookahead == 0x2029) {
335
338
  advance(lexer);
package/core/src/parser.c CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/core/src/parser.c
3
- size: 44871078 bytes
4
- sha256: 1ba65a60f3b86ebdd288256577a3df197ac33d55f9d17cfda2c14dd9bbdb6f0e
3
+ size: 44969497 bytes
4
+ sha256: 31a7ec2e09c196851d2c99357f2d680af6ca843c9467dbf2f15971bbfbda0edb
package/expr/grammar.js CHANGED
@@ -304,7 +304,7 @@ module.exports = grammar({
304
304
  ),
305
305
  keyword_super: (_) => /##SUPER/i,
306
306
  superclass_method_call: ($) => seq($.keyword_super, $.method_args),
307
- expression_call: ($) => seq(alias(/##expression/i, $.keyword_pound_expression), $.method_args),
307
+ expression_call: ($) => seq(alias(choice(/##expression/i, /##safeexpression/i), $.keyword_pound_expression), $.method_args),
308
308
  extrinsic_function: ($) =>
309
309
  // $$tag^rtn or $$@var
310
310
  prec.left(seq('$$', $._extrinsic_reference, optional($.method_args))),