tree-sitter-objectscript 1.7.9 → 1.7.10

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/core/src/parser.c CHANGED
@@ -1980366,7 +1980366,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_objectscript_core(void) {
1980366
1980366
  .metadata = {
1980367
1980367
  .major_version = 1,
1980368
1980368
  .minor_version = 7,
1980369
- .patch_version = 9,
1980369
+ .patch_version = 10,
1980370
1980370
  },
1980371
1980371
  };
1980372
1980372
  return &language;
package/expr/src/parser.c CHANGED
@@ -34600,7 +34600,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_objectscript_expr(void) {
34600
34600
  .metadata = {
34601
34601
  .major_version = 1,
34602
34602
  .minor_version = 7,
34603
- .patch_version = 9,
34603
+ .patch_version = 10,
34604
34604
  },
34605
34605
  };
34606
34606
  return &language;
@@ -2158970,7 +2158970,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_objectscript(void) {
2158970
2158970
  .metadata = {
2158971
2158971
  .major_version = 1,
2158972
2158972
  .minor_version = 7,
2158973
- .patch_version = 9,
2158973
+ .patch_version = 10,
2158974
2158974
  },
2158975
2158975
  };
2158976
2158976
  return &language;
@@ -2075599,7 +2075599,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_objectscript_routine(void) {
2075599
2075599
  .metadata = {
2075600
2075600
  .major_version = 1,
2075601
2075601
  .minor_version = 7,
2075602
- .patch_version = 9,
2075602
+ .patch_version = 10,
2075603
2075603
  },
2075604
2075604
  };
2075605
2075605
  return &language;
@@ -13,6 +13,7 @@ struct ObjectScript_Routine_Scanner {
13
13
  };
14
14
 
15
15
  static bool lex_rtn_dot(TSLexer *lexer) {
16
+ lexer->mark_end(lexer);
16
17
  if (lexer->get_column(lexer) != 0) return false;
17
18
  if (lexer->lookahead != '.') return false;
18
19
 
@@ -64,10 +65,6 @@ static bool scan(void *payload, TSLexer *lexer, const bool *valid_symbols) {
64
65
  return false;
65
66
  }
66
67
 
67
- if (valid_symbols[RTN_DOT] && lex_rtn_dot(lexer)) {
68
- return true;
69
- }
70
-
71
68
  if (ObjectScript_Core_Scanner_scan(&scanner->core_scanner, lexer,
72
69
  valid_symbols)) {
73
70
  return true;
@@ -77,6 +74,10 @@ static bool scan(void *payload, TSLexer *lexer, const bool *valid_symbols) {
77
74
  return true;
78
75
  }
79
76
 
77
+ if (valid_symbols[RTN_DOT] && lex_rtn_dot(lexer)) {
78
+ return true;
79
+ }
80
+
80
81
  return false;
81
82
  }
82
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-objectscript",
3
- "version": "1.7.9",
3
+ "version": "1.7.10",
4
4
  "description": "Tree Sitter Grammar for InterSystems ObjectScript",
5
5
  "scripts": {
6
6
  "install": "node-gyp-build",
package/tree-sitter.json CHANGED
@@ -97,7 +97,7 @@
97
97
  }
98
98
  ],
99
99
  "metadata": {
100
- "version": "1.7.9",
100
+ "version": "1.7.10",
101
101
  "license": "MIT",
102
102
  "description": "ObjectScript grammars for tree-sitter",
103
103
  "namespace": "io.github.treesitter.objectscript",
package/udl/src/parser.c CHANGED
@@ -2094596,7 +2094596,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_objectscript_udl(void) {
2094596
2094596
  .metadata = {
2094597
2094597
  .major_version = 1,
2094598
2094598
  .minor_version = 7,
2094599
- .patch_version = 9,
2094599
+ .patch_version = 10,
2094600
2094600
  },
2094601
2094601
  };
2094602
2094602
  return &language;