tree-sitter-objectscript 1.9.19__tar.gz → 1.9.22__tar.gz

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.
Files changed (47) hide show
  1. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/PKG-INFO +1 -1
  2. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript/queries/highlights.scm +1 -2
  3. tree_sitter_objectscript-1.9.22/bindings/python/tree_sitter_objectscript/queries/injections.scm +212 -0
  4. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript.egg-info/PKG-INFO +1 -1
  5. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_udl/queries/highlights.scm +1 -2
  6. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_udl/queries/injections.scm +67 -27
  7. tree_sitter_objectscript-1.9.22/objectscript/src/parser.c +4 -0
  8. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/objectscript/src/scanner.c +8 -1
  9. tree_sitter_objectscript-1.9.22/objectscript_routine/src/parser.c +4 -0
  10. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/pyproject.toml +1 -1
  11. tree_sitter_objectscript-1.9.22/udl/src/parser.c +4 -0
  12. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/udl/src/scanner.c +8 -1
  13. tree_sitter_objectscript-1.9.19/bindings/python/tree_sitter_objectscript/queries/injections.scm +0 -315
  14. tree_sitter_objectscript-1.9.19/objectscript/src/parser.c +0 -4
  15. tree_sitter_objectscript-1.9.19/objectscript_routine/src/parser.c +0 -4
  16. tree_sitter_objectscript-1.9.19/udl/src/parser.c +0 -4
  17. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/LICENSE +0 -0
  18. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/README.md +0 -0
  19. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript/__init__.py +0 -0
  20. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript/__init__.pyi +0 -0
  21. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript/binding.c +0 -0
  22. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript/py.typed +0 -0
  23. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript/queries/__init__.py +0 -0
  24. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript/queries/indents.scm +0 -0
  25. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript/queries/test.scm +0 -0
  26. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript.egg-info/SOURCES.txt +0 -0
  27. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript.egg-info/dependency_links.txt +0 -0
  28. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript.egg-info/not-zip-safe +0 -0
  29. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript.egg-info/requires.txt +0 -0
  30. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript.egg-info/top_level.txt +0 -0
  31. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_routine/__init__.py +0 -0
  32. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_routine/__init__.pyi +0 -0
  33. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_routine/binding.c +0 -0
  34. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_routine/py.typed +0 -0
  35. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_routine/queries/__init__.py +0 -0
  36. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_routine/queries/highlights.scm +0 -0
  37. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_routine/queries/indents.scm +0 -0
  38. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_routine/queries/injections.scm +0 -0
  39. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_udl/__init__.py +0 -0
  40. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_udl/__init__.pyi +0 -0
  41. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_udl/binding.c +0 -0
  42. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_udl/py.typed +0 -0
  43. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_udl/queries/__init__.py +0 -0
  44. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/bindings/python/tree_sitter_objectscript_udl/queries/indents.scm +0 -0
  45. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/objectscript_routine/src/scanner.c +0 -0
  46. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/setup.cfg +0 -0
  47. {tree_sitter_objectscript-1.9.19 → tree_sitter_objectscript-1.9.22}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tree-sitter-objectscript
3
- Version: 1.9.19
3
+ Version: 1.9.22
4
4
  Summary: Objectscript grammar for tree-sitter
5
5
  Author-email: Dave McCaldon <davem@intersystems.com>, Hannah Kimura <hkimura@intersystems.com>
6
6
  License: MIT
@@ -359,7 +359,7 @@
359
359
  (query_keyword)
360
360
  (trigger_keyword)
361
361
  (xdata_keyword_mimetype)
362
- (method_keyword_external_language)
362
+ (keyword_external_language)
363
363
  (relationship_keyword)
364
364
  (foreignkey_keyword)
365
365
  (parameter_keyword)
@@ -382,7 +382,6 @@
382
382
  (xdata_name)
383
383
  (storage_name)
384
384
  (xml_identifier)
385
- (column_name)
386
385
  ] @variable.member
387
386
 
388
387
  (keyword_list) @type.builtin
@@ -0,0 +1,212 @@
1
+ ; AUTO-GENERATED by scripts/sync_queries.py
2
+ ; Edit only the LOCAL section in composed files.
3
+ ; File: injections.scm
4
+ ; === BEGIN CORE ===
5
+ (embedded_html
6
+ (angled_bracket_fenced_text) @injection.content
7
+ (#set! injection.language "html"))
8
+
9
+ (embedded_sql
10
+ (_
11
+ (paren_fenced_text) @injection.content)
12
+ (#set! injection.language "sql"))
13
+
14
+ (embedded_js
15
+ [
16
+ (angled_bracket_fenced_text)
17
+ (embedded_js_special_case)
18
+ ] @injection.content
19
+ (#set! injection.language "javascript"))
20
+
21
+ (embedded_xml
22
+ (angled_bracket_fenced_text) @injection.content
23
+ (#set! injection.language "xml"))
24
+
25
+ ; === END CORE ===
26
+ ; === BEGIN UDL ===
27
+ ; Keywords, one of type language = "python", none of type codemode
28
+ ; External method body injection based on [ Language = ... ]
29
+ (method_definition
30
+ (external_method_keywords
31
+ (keyword_external_language
32
+ (typename) @_lang))
33
+ (external_method_body_content) @injection.content
34
+ (#set! injection.include-children "true")
35
+ (#any-of? @_lang "python" "Python" "PYTHON")
36
+ (#set! injection.language "python"))
37
+
38
+ (method_definition
39
+ (external_method_keywords
40
+ (keyword_external_language
41
+ (typename) @_lang))
42
+ (external_method_body_content) @injection.content
43
+ (#set! injection.include-children "true")
44
+ (#any-of? @_lang "tsql" "TSQL" "tSQL" "tSql" "TSql")
45
+ (#set! injection.language "tsql"))
46
+
47
+ (method_definition
48
+ (external_method_keywords
49
+ (keyword_external_language
50
+ (typename) @_lang))
51
+ (external_method_body_content) @injection.content
52
+ (#set! injection.include-children "true")
53
+ (#any-of? @_lang "ispl" "ISPL" "ISpl" "iSpl")
54
+ (#set! injection.language "ispl"))
55
+
56
+ (trigger
57
+ (external_trigger_keywords
58
+ (keyword_external_language
59
+ (typename) @_lang))
60
+ (external_method_body_content) @injection.content
61
+ (#set! injection.include-children "true")
62
+ (#any-of? @_lang "python" "Python" "PYTHON")
63
+ (#set! injection.language "python"))
64
+
65
+ (trigger
66
+ (external_trigger_keywords
67
+ (keyword_external_language
68
+ (typename) @_lang))
69
+ (external_method_body_content) @injection.content
70
+ (#set! injection.include-children "true")
71
+ (#any-of? @_lang "tsql" "TSQL" "tSQL" "tSql" "TSql")
72
+ (#set! injection.language "tsql"))
73
+
74
+ ; A query must be of type %SQLQuery to have an SQL body, otherwise the body
75
+ ; is empty
76
+ (query
77
+ (return_type
78
+ (typename
79
+ (identifier) @_querytype
80
+ (#any-of? @_querytype "%SqlQuery" "%sqlquery" "%SQLQUERY" "%Sqlquery" "%SQLQuery")))
81
+ (external_method_body_content) @injection.content
82
+ (#set! injection.language "sql")
83
+ (#set! injection.include-children "true"))
84
+
85
+ ; XDATA blocks:
86
+ ; - xdata_any requires a keyword list that includes MimeType
87
+ ; - xdata_xml allows an optional keyword list and defaults to XML
88
+ ; ----------------------------
89
+ ; XDATA injections (MimeType)
90
+ ; ----------------------------
91
+ ; text/markdown
92
+ ;
93
+ (xdata
94
+ (xdata_keywords
95
+ (xdata_keyword_mimetype
96
+ (typename) @_mt))
97
+ (external_method_body_content) @injection.content
98
+ (#set! injection.include-children "true")
99
+ (#any-of? @_mt "text/markdown" "\"text/markdown\"")
100
+ (#set! injection.language "markdown"))
101
+
102
+ (xdata
103
+ (xdata_keywords
104
+ (xdata_keyword_mimetype
105
+ (typename) @_mt))
106
+ (external_method_body_content) @injection.content
107
+ (#set! injection.include-children "true")
108
+ (#any-of? @_mt "text/javascript" "\"text/javascript\"")
109
+ (#set! injection.language "javascript"))
110
+
111
+ (xdata
112
+ (xdata_keywords
113
+ (xdata_keyword_mimetype
114
+ (typename) @_mt))
115
+ (external_method_body_content) @injection.content
116
+ (#set! injection.include-children "true")
117
+ (#any-of? @_mt "text/x-python" "\"text/x-python\"" "application/python" "\"application/python\"")
118
+ (#set! injection.language "python"))
119
+
120
+ (xdata
121
+ (xdata_keywords
122
+ (xdata_keyword_mimetype
123
+ (typename) @_mt))
124
+ (external_method_body_content) @injection.content
125
+ (#set! injection.include-children "true")
126
+ (#any-of? @_mt "text/xml" "\"text/xml\"" "application/xml" "\"application/xml\"")
127
+ (#set! injection.language "xml"))
128
+
129
+ (xdata
130
+ (xdata_keywords
131
+ (xdata_keyword_mimetype
132
+ (typename) @_mt))
133
+ (external_method_body_content) @injection.content
134
+ (#set! injection.include-children "true")
135
+ (#any-of? @_mt "text/html" "\"text/html\"")
136
+ (#set! injection.language "html"))
137
+
138
+ (xdata
139
+ (xdata_keywords
140
+ (xdata_keyword_mimetype
141
+ (typename) @_mt))
142
+ (external_method_body_content) @injection.content
143
+ (#set! injection.include-children "true")
144
+ (#any-of? @_mt "application/json" "\"application/json\"")
145
+ (#set! injection.language "json"))
146
+
147
+ (xdata
148
+ (xdata_keywords
149
+ (xdata_keyword_mimetype
150
+ (typename) @_mt))
151
+ (external_method_body_content) @injection.content
152
+ (#set! injection.include-children "true")
153
+ (#any-of? @_mt "text/yaml" "\"text/yaml\"" "application/yaml" "\"application/yaml\"")
154
+ (#set! injection.language "yaml"))
155
+
156
+ (xdata
157
+ (xdata_keywords
158
+ (xdata_keyword_mimetype
159
+ (typename) @_mt))
160
+ (external_method_body_content) @injection.content
161
+ (#set! injection.include-children "true")
162
+ (#any-of? @_mt "text/css" "\"text/css\"")
163
+ (#set! injection.language "css"))
164
+
165
+ (xdata
166
+ (xdata_keywords
167
+ (xdata_keyword_mimetype
168
+ (typename) @_mt))
169
+ (external_method_body_content) @injection.content
170
+ (#set! injection.include-children "true")
171
+ (#any-of? @_mt "application/sql" "\"application/sql\"")
172
+ (#set! injection.language "sql"))
173
+
174
+ (xdata
175
+ (xdata_keywords
176
+ (xdata_keyword_mimetype
177
+ (typename) @_mt))
178
+ (external_method_body_content) @injection.content
179
+ (#set! injection.include-children "true")
180
+ (#any-of? @_mt "text/x-java-source" "\"text/x-java-source\"")
181
+ (#set! injection.language "java"))
182
+
183
+ ; --------------------------------------------
184
+ ; XDATA default (no MimeType header): XML fallback
185
+ ; --------------------------------------------
186
+ ((xdata
187
+ (external_method_body_content) @injection.content) @_xdata
188
+ (#not-match? @_xdata "^[^{}]*[Mm][Ii][Mm][Ee][Tt][Yy][Pp][Ee][ \t\r\n]*=")
189
+ (#set! injection.include-children "true")
190
+ (#set! injection.language "xml"))
191
+
192
+ ; Storage definition is XML
193
+ (storage
194
+ (external_method_body_content) @injection.content
195
+ (#set! injection.language "xml")
196
+ (#set! injection.include-children "true"))
197
+
198
+ ([
199
+ (line_comment_1)
200
+ (line_comment_2)
201
+ (line_comment_3)
202
+ (line_comment_4)
203
+ (block_comment)
204
+ (inline_comment)
205
+ (argumentless_inline_comment)
206
+ (documatic_line)
207
+ ] @injection.content
208
+ (#set! injection.language "comment"))
209
+
210
+ ; === END UDL ===
211
+ ; === BEGIN LOCAL ===
212
+ ; === END LOCAL ===
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tree-sitter-objectscript
3
- Version: 1.9.19
3
+ Version: 1.9.22
4
4
  Summary: Objectscript grammar for tree-sitter
5
5
  Author-email: Dave McCaldon <davem@intersystems.com>, Hannah Kimura <hkimura@intersystems.com>
6
6
  License: MIT
@@ -359,7 +359,7 @@
359
359
  (query_keyword)
360
360
  (trigger_keyword)
361
361
  (xdata_keyword_mimetype)
362
- (method_keyword_external_language)
362
+ (keyword_external_language)
363
363
  (relationship_keyword)
364
364
  (foreignkey_keyword)
365
365
  (parameter_keyword)
@@ -382,7 +382,6 @@
382
382
  (xdata_name)
383
383
  (storage_name)
384
384
  (xml_identifier)
385
- (column_name)
386
385
  ] @variable.member
387
386
 
388
387
  (keyword_list) @type.builtin
@@ -27,40 +27,45 @@
27
27
  ; Keywords, one of type language = "python", none of type codemode
28
28
  ; External method body injection based on [ Language = ... ]
29
29
  (method_definition
30
- (method_keyword_external_language
31
- (typename) @_lang)
30
+ (external_method_keywords
31
+ (keyword_external_language
32
+ (typename) @_lang))
32
33
  (external_method_body_content) @injection.content
33
34
  (#set! injection.include-children "true")
34
35
  (#any-of? @_lang "python" "Python" "PYTHON")
35
36
  (#set! injection.language "python"))
36
37
 
37
38
  (method_definition
38
- (method_keyword_external_language
39
- (typename) @_lang)
39
+ (external_method_keywords
40
+ (keyword_external_language
41
+ (typename) @_lang))
40
42
  (external_method_body_content) @injection.content
41
43
  (#set! injection.include-children "true")
42
44
  (#any-of? @_lang "tsql" "TSQL" "tSQL" "tSql" "TSql")
43
45
  (#set! injection.language "tsql"))
44
46
 
45
47
  (method_definition
46
- (method_keyword_external_language
47
- (typename) @_lang)
48
+ (external_method_keywords
49
+ (keyword_external_language
50
+ (typename) @_lang))
48
51
  (external_method_body_content) @injection.content
49
52
  (#set! injection.include-children "true")
50
53
  (#any-of? @_lang "ispl" "ISPL" "ISpl" "iSpl")
51
54
  (#set! injection.language "ispl"))
52
55
 
53
56
  (trigger
54
- (method_keyword_external_language
55
- (typename) @_lang)
57
+ (external_trigger_keywords
58
+ (keyword_external_language
59
+ (typename) @_lang))
56
60
  (external_method_body_content) @injection.content
57
61
  (#set! injection.include-children "true")
58
62
  (#any-of? @_lang "python" "Python" "PYTHON")
59
63
  (#set! injection.language "python"))
60
64
 
61
65
  (trigger
62
- (method_keyword_external_language
63
- (typename) @_lang)
66
+ (external_trigger_keywords
67
+ (keyword_external_language
68
+ (typename) @_lang))
64
69
  (external_method_body_content) @injection.content
65
70
  (#set! injection.include-children "true")
66
71
  (#any-of? @_lang "tsql" "TSQL" "tSQL" "tSql" "TSql")
@@ -86,67 +91,102 @@
86
91
  ; text/markdown
87
92
  ;
88
93
  (xdata
89
- (xdata_keyword_mimetype
90
- (typename) @_mt)
94
+ (xdata_keywords
95
+ (xdata_keyword_mimetype
96
+ (typename) @_mt))
91
97
  (external_method_body_content) @injection.content
92
98
  (#set! injection.include-children "true")
93
99
  (#any-of? @_mt "text/markdown" "\"text/markdown\"")
94
100
  (#set! injection.language "markdown"))
95
101
 
96
102
  (xdata
97
- (xdata_keyword_mimetype
98
- (typename) @_mt)
103
+ (xdata_keywords
104
+ (xdata_keyword_mimetype
105
+ (typename) @_mt))
106
+ (external_method_body_content) @injection.content
107
+ (#set! injection.include-children "true")
108
+ (#any-of? @_mt "text/javascript" "\"text/javascript\"")
109
+ (#set! injection.language "javascript"))
110
+
111
+ (xdata
112
+ (xdata_keywords
113
+ (xdata_keyword_mimetype
114
+ (typename) @_mt))
99
115
  (external_method_body_content) @injection.content
100
116
  (#set! injection.include-children "true")
101
117
  (#any-of? @_mt "text/x-python" "\"text/x-python\"" "application/python" "\"application/python\"")
102
118
  (#set! injection.language "python"))
103
119
 
104
120
  (xdata
105
- (xdata_keyword_mimetype
106
- (typename) @_mt)
121
+ (xdata_keywords
122
+ (xdata_keyword_mimetype
123
+ (typename) @_mt))
107
124
  (external_method_body_content) @injection.content
108
125
  (#set! injection.include-children "true")
109
126
  (#any-of? @_mt "text/xml" "\"text/xml\"" "application/xml" "\"application/xml\"")
110
127
  (#set! injection.language "xml"))
111
128
 
112
129
  (xdata
113
- (xdata_keyword_mimetype
114
- (typename) @_mt)
130
+ (xdata_keywords
131
+ (xdata_keyword_mimetype
132
+ (typename) @_mt))
115
133
  (external_method_body_content) @injection.content
116
134
  (#set! injection.include-children "true")
117
135
  (#any-of? @_mt "text/html" "\"text/html\"")
118
136
  (#set! injection.language "html"))
119
137
 
120
138
  (xdata
121
- (xdata_keyword_mimetype
122
- (typename) @_mt)
139
+ (xdata_keywords
140
+ (xdata_keyword_mimetype
141
+ (typename) @_mt))
123
142
  (external_method_body_content) @injection.content
124
143
  (#set! injection.include-children "true")
125
144
  (#any-of? @_mt "application/json" "\"application/json\"")
126
145
  (#set! injection.language "json"))
127
146
 
128
147
  (xdata
129
- (xdata_keyword_mimetype
130
- (typename) @_mt)
148
+ (xdata_keywords
149
+ (xdata_keyword_mimetype
150
+ (typename) @_mt))
131
151
  (external_method_body_content) @injection.content
132
152
  (#set! injection.include-children "true")
133
153
  (#any-of? @_mt "text/yaml" "\"text/yaml\"" "application/yaml" "\"application/yaml\"")
134
154
  (#set! injection.language "yaml"))
135
155
 
136
156
  (xdata
137
- (xdata_keyword_mimetype
138
- (typename) @_mt)
157
+ (xdata_keywords
158
+ (xdata_keyword_mimetype
159
+ (typename) @_mt))
139
160
  (external_method_body_content) @injection.content
140
161
  (#set! injection.include-children "true")
141
162
  (#any-of? @_mt "text/css" "\"text/css\"")
142
163
  (#set! injection.language "css"))
143
164
 
144
- ; -----------------------------------------
145
- ; XDATA default (no MimeType): XML fallback
146
- ; -----------------------------------------
147
165
  (xdata
166
+ (xdata_keywords
167
+ (xdata_keyword_mimetype
168
+ (typename) @_mt))
148
169
  (external_method_body_content) @injection.content
149
170
  (#set! injection.include-children "true")
171
+ (#any-of? @_mt "application/sql" "\"application/sql\"")
172
+ (#set! injection.language "sql"))
173
+
174
+ (xdata
175
+ (xdata_keywords
176
+ (xdata_keyword_mimetype
177
+ (typename) @_mt))
178
+ (external_method_body_content) @injection.content
179
+ (#set! injection.include-children "true")
180
+ (#any-of? @_mt "text/x-java-source" "\"text/x-java-source\"")
181
+ (#set! injection.language "java"))
182
+
183
+ ; --------------------------------------------
184
+ ; XDATA default (no MimeType header): XML fallback
185
+ ; --------------------------------------------
186
+ ((xdata
187
+ (external_method_body_content) @injection.content) @_xdata
188
+ (#not-match? @_xdata "^[^{}]*[Mm][Ii][Mm][Ee][Tt][Yy][Pp][Ee][ \t\r\n]*=")
189
+ (#set! injection.include-children "true")
150
190
  (#set! injection.language "xml"))
151
191
 
152
192
  ; Storage definition is XML
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: tree_sitter_objectscript-1.9.22/objectscript/src/parser.c
3
+ size: 48996854 bytes
4
+ sha256: 2da2cf4f98c6b812786dc0e8724166fd4d8590f26f4d7530733ef6a2e989786a
@@ -50,10 +50,17 @@ static bool scan(struct ObjectScript_Udl_Scanner *scanner, TSLexer *lexer, const
50
50
  }
51
51
 
52
52
  if (valid_symbols[PYTHON_MIME_TYPE]) {
53
- lexer->mark_end(lexer);
53
+ lexer->mark_end(lexer);
54
+ int count = 0;
54
55
  while(iswspace(lexer->lookahead)) {
56
+ count ++;
55
57
  advance(lexer);
56
58
  }
59
+ if (count > 0) {
60
+ lexer -> mark_end(lexer);
61
+ lexer->result_symbol = _WHITESPACE;
62
+ return true;
63
+ }
57
64
  bool has_string = false;
58
65
  if (lexer->lookahead == '"') {
59
66
  has_string = true;
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: tree_sitter_objectscript-1.9.22/objectscript_routine/src/parser.c
3
+ size: 46685829 bytes
4
+ sha256: eff6d20e02c63be0847a29a069a9d0444104b799a4d2fdb2aa73d62778b124ba
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  name = "tree-sitter-objectscript"
7
7
  description = "Objectscript grammar for tree-sitter"
8
- version = "1.9.19"
8
+ version = "1.9.22"
9
9
  keywords = ["incremental", "parsing", "tree-sitter", "objectscript"]
10
10
  classifiers = [
11
11
  "Intended Audience :: Developers",
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: tree_sitter_objectscript-1.9.22/udl/src/parser.c
3
+ size: 47232954 bytes
4
+ sha256: e820879682d688e9774ec285cd0dfc3f049da94f1699a6cd20200ab8e3c6f20f
@@ -49,10 +49,17 @@ static bool scan(struct ObjectScript_Udl_Scanner *scanner, TSLexer *lexer, const
49
49
  }
50
50
 
51
51
  if (valid_symbols[PYTHON_MIME_TYPE]) {
52
- lexer->mark_end(lexer);
52
+ lexer->mark_end(lexer);
53
+ int count = 0;
53
54
  while(iswspace(lexer->lookahead)) {
55
+ count ++;
54
56
  advance(lexer);
55
57
  }
58
+ if (count > 0) {
59
+ lexer -> mark_end(lexer);
60
+ lexer->result_symbol = _WHITESPACE;
61
+ return true;
62
+ }
56
63
  bool has_string = false;
57
64
  if (lexer->lookahead == '"') {
58
65
  has_string = true;
@@ -1,315 +0,0 @@
1
- ; AUTO-GENERATED by scripts/sync_queries.py
2
- ; Edit only the LOCAL section in composed files.
3
- ; File: injections.scm
4
- ; === BEGIN CORE ===
5
- (embedded_html
6
- (angled_bracket_fenced_text) @injection.content
7
- (#set! injection.language "html"))
8
-
9
- (embedded_sql
10
- (_
11
- (paren_fenced_text) @injection.content)
12
- (#set! injection.language "sql"))
13
-
14
- (embedded_js
15
- [
16
- (angled_bracket_fenced_text)
17
- (embedded_js_special_case)
18
- ] @injection.content
19
- (#set! injection.language "javascript"))
20
-
21
- (embedded_xml
22
- (angled_bracket_fenced_text) @injection.content
23
- (#set! injection.language "xml"))
24
-
25
- ; === END CORE ===
26
- ; === BEGIN UDL ===
27
- ; Keywords, one of type language = "python", none of type codemode
28
- ; External method body injection based on [ Language = ... ]
29
- (method_definition
30
- (method_keyword_external_language
31
- (typename) @_lang)
32
- (external_method_body_content) @injection.content
33
- (#set! injection.include-children "true")
34
- (#any-of? @_lang "python" "Python" "PYTHON")
35
- (#set! injection.language "python"))
36
-
37
- (method_definition
38
- (method_keyword_external_language
39
- (typename) @_lang)
40
- (external_method_body_content) @injection.content
41
- (#set! injection.include-children "true")
42
- (#any-of? @_lang "tsql" "TSQL" "tSQL" "tSql" "TSql")
43
- (#set! injection.language "tsql"))
44
-
45
- (method_definition
46
- (method_keyword_external_language
47
- (typename) @_lang)
48
- (external_method_body_content) @injection.content
49
- (#set! injection.include-children "true")
50
- (#any-of? @_lang "ispl" "ISPL" "ISpl" "iSpl")
51
- (#set! injection.language "ispl"))
52
-
53
- (trigger
54
- (method_keyword_external_language
55
- (typename) @_lang)
56
- (external_method_body_content) @injection.content
57
- (#set! injection.include-children "true")
58
- (#any-of? @_lang "python" "Python" "PYTHON")
59
- (#set! injection.language "python"))
60
-
61
- (trigger
62
- (method_keyword_external_language
63
- (typename) @_lang)
64
- (external_method_body_content) @injection.content
65
- (#set! injection.include-children "true")
66
- (#any-of? @_lang "tsql" "TSQL" "tSQL" "tSql" "TSql")
67
- (#set! injection.language "tsql"))
68
-
69
- ; A query must be of type %SQLQuery to have an SQL body, otherwise the body
70
- ; is empty
71
- (query
72
- (return_type
73
- (typename
74
- (identifier) @_querytype
75
- (#any-of? @_querytype "%SqlQuery" "%sqlquery" "%SQLQUERY" "%Sqlquery" "%SQLQuery")))
76
- (external_method_body_content) @injection.content
77
- (#set! injection.language "sql")
78
- (#set! injection.include-children "true"))
79
-
80
- ; XDATA blocks:
81
- ; - xdata_any requires a keyword list that includes MimeType
82
- ; - xdata_xml allows an optional keyword list and defaults to XML
83
- ; ----------------------------
84
- ; XDATA injections (MimeType)
85
- ; ----------------------------
86
- ; text/markdown
87
- ;
88
- (xdata
89
- (xdata_keyword_mimetype
90
- (typename) @_mt)
91
- (external_method_body_content) @injection.content
92
- (#set! injection.include-children "true")
93
- (#any-of? @_mt "text/markdown" "\"text/markdown\"")
94
- (#set! injection.language "markdown"))
95
-
96
- (xdata
97
- (xdata_keyword_mimetype
98
- (typename) @_mt)
99
- (external_method_body_content) @injection.content
100
- (#set! injection.include-children "true")
101
- (#any-of? @_mt "text/x-python" "\"text/x-python\"" "application/python" "\"application/python\"")
102
- (#set! injection.language "python"))
103
-
104
- (xdata
105
- (xdata_keyword_mimetype
106
- (typename) @_mt)
107
- (external_method_body_content) @injection.content
108
- (#set! injection.include-children "true")
109
- (#any-of? @_mt "text/xml" "\"text/xml\"" "application/xml" "\"application/xml\"")
110
- (#set! injection.language "xml"))
111
-
112
- (xdata
113
- (xdata_keyword_mimetype
114
- (typename) @_mt)
115
- (external_method_body_content) @injection.content
116
- (#set! injection.include-children "true")
117
- (#any-of? @_mt "text/html" "\"text/html\"")
118
- (#set! injection.language "html"))
119
-
120
- (xdata
121
- (xdata_keyword_mimetype
122
- (typename) @_mt)
123
- (external_method_body_content) @injection.content
124
- (#set! injection.include-children "true")
125
- (#any-of? @_mt "application/json" "\"application/json\"")
126
- (#set! injection.language "json"))
127
-
128
- (xdata
129
- (xdata_keyword_mimetype
130
- (typename) @_mt)
131
- (external_method_body_content) @injection.content
132
- (#set! injection.include-children "true")
133
- (#any-of? @_mt "text/yaml" "\"text/yaml\"" "application/yaml" "\"application/yaml\"")
134
- (#set! injection.language "yaml"))
135
-
136
- (xdata
137
- (xdata_keyword_mimetype
138
- (typename) @_mt)
139
- (external_method_body_content) @injection.content
140
- (#set! injection.include-children "true")
141
- (#any-of? @_mt "text/css" "\"text/css\"")
142
- (#set! injection.language "css"))
143
-
144
- ; -----------------------------------------
145
- ; XDATA default (no MimeType): XML fallback
146
- ; -----------------------------------------
147
- (xdata
148
- (external_method_body_content) @injection.content
149
- (#set! injection.include-children "true")
150
- (#set! injection.language "xml"))
151
-
152
- ; Storage definition is XML
153
- (storage
154
- (external_method_body_content) @injection.content
155
- (#set! injection.language "xml")
156
- (#set! injection.include-children "true"))
157
-
158
- ([
159
- (line_comment_1)
160
- (line_comment_2)
161
- (line_comment_3)
162
- (line_comment_4)
163
- (block_comment)
164
- (inline_comment)
165
- (argumentless_inline_comment)
166
- (documatic_line)
167
- ] @injection.content
168
- (#set! injection.language "comment"))
169
-
170
- ; === END UDL ===
171
- ; === BEGIN LOCAL ===
172
- ; Keywords, one of type language = "python", none of type codemode
173
- ; External method body injection based on [ Language = ... ]
174
- (method_definition
175
- (method_keyword_external_language
176
- (typename) @_lang)
177
- (external_method_body_content) @injection.content
178
- (#set! injection.include-children "true")
179
- (#any-of? @_lang "python" "Python" "PYTHON")
180
- (#set! injection.language "python"))
181
-
182
- (method_definition
183
- (method_keyword_external_language
184
- (typename) @_lang)
185
- (external_method_body_content) @injection.content
186
- (#set! injection.include-children "true")
187
- (#any-of? @_lang "tsql" "TSQL" "tSQL" "tSql" "TSql")
188
- (#set! injection.language "tsql"))
189
-
190
- (method_definition
191
- (method_keyword_external_language
192
- (typename) @_lang)
193
- (external_method_body_content) @injection.content
194
- (#set! injection.include-children "true")
195
- (#any-of? @_lang "ispl" "ISPL" "ISpl" "iSpl")
196
- (#set! injection.language "ispl"))
197
-
198
- (trigger
199
- (method_keyword_external_language
200
- (typename) @_lang)
201
- (external_method_body_content) @injection.content
202
- (#set! injection.include-children "true")
203
- (#any-of? @_lang "python" "Python" "PYTHON")
204
- (#set! injection.language "python"))
205
-
206
- (trigger
207
- (method_keyword_external_language
208
- (typename) @_lang)
209
- (external_method_body_content) @injection.content
210
- (#set! injection.include-children "true")
211
- (#any-of? @_lang "tsql" "TSQL" "tSQL" "tSql" "TSql")
212
- (#set! injection.language "tsql"))
213
-
214
- ; A query must be of type %SQLQuery to have an SQL body, otherwise the body
215
- ; is empty
216
- (query
217
- (return_type
218
- (typename
219
- (identifier) @_querytype
220
- (#any-of? @_querytype "%SqlQuery" "%sqlquery" "%SQLQUERY" "%Sqlquery" "%SQLQuery")))
221
- (external_method_body_content) @injection.content
222
- (#set! injection.language "sql")
223
- (#set! injection.include-children "true"))
224
-
225
- ; XDATA blocks:
226
- ; - xdata_any requires a keyword list that includes MimeType
227
- ; - xdata_xml allows an optional keyword list and defaults to XML
228
- ; ----------------------------
229
- ; XDATA injections (MimeType)
230
- ; ----------------------------
231
- ; text/markdown
232
- ;
233
- (xdata
234
- (xdata_keyword_mimetype
235
- (typename) @_mt)
236
- (external_method_body_content) @injection.content
237
- (#set! injection.include-children "true")
238
- (#any-of? @_mt "text/markdown" "\"text/markdown\"")
239
- (#set! injection.language "markdown"))
240
-
241
- (xdata
242
- (xdata_keyword_mimetype
243
- (typename) @_mt)
244
- (external_method_body_content) @injection.content
245
- (#set! injection.include-children "true")
246
- (#any-of? @_mt "text/x-python" "\"text/x-python\"" "application/python" "\"application/python\"")
247
- (#set! injection.language "python"))
248
-
249
- (xdata
250
- (xdata_keyword_mimetype
251
- (typename) @_mt)
252
- (external_method_body_content) @injection.content
253
- (#set! injection.include-children "true")
254
- (#any-of? @_mt "text/xml" "\"text/xml\"" "application/xml" "\"application/xml\"")
255
- (#set! injection.language "xml"))
256
-
257
- (xdata
258
- (xdata_keyword_mimetype
259
- (typename) @_mt)
260
- (external_method_body_content) @injection.content
261
- (#set! injection.include-children "true")
262
- (#any-of? @_mt "text/html" "\"text/html\"")
263
- (#set! injection.language "html"))
264
-
265
- (xdata
266
- (xdata_keyword_mimetype
267
- (typename) @_mt)
268
- (external_method_body_content) @injection.content
269
- (#set! injection.include-children "true")
270
- (#any-of? @_mt "application/json" "\"application/json\"")
271
- (#set! injection.language "json"))
272
-
273
- (xdata
274
- (xdata_keyword_mimetype
275
- (typename) @_mt)
276
- (external_method_body_content) @injection.content
277
- (#set! injection.include-children "true")
278
- (#any-of? @_mt "text/yaml" "\"text/yaml\"" "application/yaml" "\"application/yaml\"")
279
- (#set! injection.language "yaml"))
280
-
281
- (xdata
282
- (xdata_keyword_mimetype
283
- (typename) @_mt)
284
- (external_method_body_content) @injection.content
285
- (#set! injection.include-children "true")
286
- (#any-of? @_mt "text/css" "\"text/css\"")
287
- (#set! injection.language "css"))
288
-
289
- ; -----------------------------------------
290
- ; XDATA default (no MimeType): XML fallback
291
- ; -----------------------------------------
292
- (xdata
293
- (external_method_body_content) @injection.content
294
- (#set! injection.include-children "true")
295
- (#set! injection.language "xml"))
296
-
297
- ; Storage definition is XML
298
- (storage
299
- (external_method_body_content) @injection.content
300
- (#set! injection.language "xml")
301
- (#set! injection.include-children "true"))
302
-
303
- ([
304
- (line_comment_1)
305
- (line_comment_2)
306
- (line_comment_3)
307
- (line_comment_4)
308
- (block_comment)
309
- (inline_comment)
310
- (argumentless_inline_comment)
311
- (documatic_line)
312
- ] @injection.content
313
- (#set! injection.language "comment"))
314
-
315
- ; === END LOCAL ===
@@ -1,4 +0,0 @@
1
- [diffend] Oversized file quarantined before diffing.
2
- name: tree_sitter_objectscript-1.9.19/objectscript/src/parser.c
3
- size: 48723989 bytes
4
- sha256: d594d196b722ffef2e259531bb7e04a940c71971c5b60269cdc08bd1e24b91ab
@@ -1,4 +0,0 @@
1
- [diffend] Oversized file quarantined before diffing.
2
- name: tree_sitter_objectscript-1.9.19/objectscript_routine/src/parser.c
3
- size: 46414414 bytes
4
- sha256: 626ed7453b8fc51d6dd291c77acf32c9317cfd5aa481a51b21d49e08e4ca42f4
@@ -1,4 +0,0 @@
1
- [diffend] Oversized file quarantined before diffing.
2
- name: tree_sitter_objectscript-1.9.19/udl/src/parser.c
3
- size: 46965390 bytes
4
- sha256: cbeaee7aaf8f4e850ed9306baaa3a4593fa50af2522ff291e9982da77591914f