tree-sitter-ucode 0.5.0 → 0.6.1

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.
@@ -75,6 +75,14 @@
75
75
  "type": "SYMBOL",
76
76
  "name": "default_tag"
77
77
  },
78
+ {
79
+ "type": "SYMBOL",
80
+ "name": "function_tag"
81
+ },
82
+ {
83
+ "type": "SYMBOL",
84
+ "name": "module_tag"
85
+ },
78
86
  {
79
87
  "type": "SYMBOL",
80
88
  "name": "unknown_tag"
@@ -89,105 +97,69 @@
89
97
  ]
90
98
  },
91
99
  "_begin": {
92
- "type": "SEQ",
93
- "members": [
94
- {
95
- "type": "STRING",
96
- "value": "/"
97
- },
98
- {
99
- "type": "REPEAT",
100
- "content": {
100
+ "type": "TOKEN",
101
+ "content": {
102
+ "type": "SEQ",
103
+ "members": [
104
+ {
101
105
  "type": "STRING",
102
- "value": "*"
106
+ "value": "/"
107
+ },
108
+ {
109
+ "type": "PATTERN",
110
+ "value": "\\*+"
103
111
  }
104
- }
105
- ]
112
+ ]
113
+ }
106
114
  },
107
115
  "_end": {
108
- "type": "STRING",
109
- "value": "/"
116
+ "type": "TOKEN",
117
+ "content": {
118
+ "type": "SEQ",
119
+ "members": [
120
+ {
121
+ "type": "PATTERN",
122
+ "value": "\\*+"
123
+ },
124
+ {
125
+ "type": "STRING",
126
+ "value": "/"
127
+ }
128
+ ]
129
+ }
110
130
  },
111
131
  "_typed_description": {
112
- "type": "PREC_RIGHT",
113
- "value": 0,
132
+ "type": "REPEAT1",
114
133
  "content": {
115
- "type": "SEQ",
134
+ "type": "CHOICE",
116
135
  "members": [
117
136
  {
118
- "type": "CHOICE",
119
- "members": [
120
- {
121
- "type": "SYMBOL",
122
- "name": "_text"
123
- },
124
- {
125
- "type": "SYMBOL",
126
- "name": "inline_tag"
127
- }
128
- ]
137
+ "type": "SYMBOL",
138
+ "name": "_text"
129
139
  },
130
140
  {
131
- "type": "REPEAT",
132
- "content": {
133
- "type": "CHOICE",
134
- "members": [
135
- {
136
- "type": "SYMBOL",
137
- "name": "_text"
138
- },
139
- {
140
- "type": "SYMBOL",
141
- "name": "inline_tag"
142
- }
143
- ]
144
- }
141
+ "type": "SYMBOL",
142
+ "name": "inline_tag"
145
143
  }
146
144
  ]
147
145
  }
148
146
  },
149
147
  "_free_description": {
150
- "type": "PREC_RIGHT",
151
- "value": 0,
148
+ "type": "REPEAT1",
152
149
  "content": {
153
- "type": "SEQ",
150
+ "type": "CHOICE",
154
151
  "members": [
155
152
  {
156
- "type": "CHOICE",
157
- "members": [
158
- {
159
- "type": "SYMBOL",
160
- "name": "_text"
161
- },
162
- {
163
- "type": "SYMBOL",
164
- "name": "inline_tag"
165
- },
166
- {
167
- "type": "SYMBOL",
168
- "name": "_brace_text"
169
- }
170
- ]
153
+ "type": "SYMBOL",
154
+ "name": "_text"
171
155
  },
172
156
  {
173
- "type": "REPEAT",
174
- "content": {
175
- "type": "CHOICE",
176
- "members": [
177
- {
178
- "type": "SYMBOL",
179
- "name": "_text"
180
- },
181
- {
182
- "type": "SYMBOL",
183
- "name": "inline_tag"
184
- },
185
- {
186
- "type": "SYMBOL",
187
- "name": "_brace_text"
188
- }
189
- ]
190
- }
157
+ "type": "SYMBOL",
158
+ "name": "inline_tag"
159
+ },
160
+ {
161
+ "type": "SYMBOL",
162
+ "name": "_brace_text"
191
163
  }
192
164
  ]
193
165
  }
@@ -793,6 +765,94 @@
793
765
  }
794
766
  ]
795
767
  },
768
+ "function_tag": {
769
+ "type": "SEQ",
770
+ "members": [
771
+ {
772
+ "type": "STRING",
773
+ "value": "@function"
774
+ },
775
+ {
776
+ "type": "CHOICE",
777
+ "members": [
778
+ {
779
+ "type": "FIELD",
780
+ "name": "namepath",
781
+ "content": {
782
+ "type": "SYMBOL",
783
+ "name": "namepath"
784
+ }
785
+ },
786
+ {
787
+ "type": "BLANK"
788
+ }
789
+ ]
790
+ }
791
+ ]
792
+ },
793
+ "module_tag": {
794
+ "type": "SEQ",
795
+ "members": [
796
+ {
797
+ "type": "STRING",
798
+ "value": "@module"
799
+ },
800
+ {
801
+ "type": "FIELD",
802
+ "name": "name",
803
+ "content": {
804
+ "type": "SYMBOL",
805
+ "name": "member_name"
806
+ }
807
+ }
808
+ ]
809
+ },
810
+ "namepath": {
811
+ "type": "SEQ",
812
+ "members": [
813
+ {
814
+ "type": "STRING",
815
+ "value": "module:"
816
+ },
817
+ {
818
+ "type": "FIELD",
819
+ "name": "path",
820
+ "content": {
821
+ "type": "SYMBOL",
822
+ "name": "module_path"
823
+ }
824
+ },
825
+ {
826
+ "type": "CHOICE",
827
+ "members": [
828
+ {
829
+ "type": "SEQ",
830
+ "members": [
831
+ {
832
+ "type": "STRING",
833
+ "value": "#"
834
+ },
835
+ {
836
+ "type": "FIELD",
837
+ "name": "member",
838
+ "content": {
839
+ "type": "SYMBOL",
840
+ "name": "member_name"
841
+ }
842
+ }
843
+ ]
844
+ },
845
+ {
846
+ "type": "BLANK"
847
+ }
848
+ ]
849
+ }
850
+ ]
851
+ },
852
+ "member_name": {
853
+ "type": "PATTERN",
854
+ "value": "[a-zA-Z_$][a-zA-Z0-9_$]*"
855
+ },
796
856
  "unknown_tag": {
797
857
  "type": "SEQ",
798
858
  "members": [
@@ -911,6 +971,14 @@
911
971
  {
912
972
  "type": "SYMBOL",
913
973
  "name": "any_type"
974
+ },
975
+ {
976
+ "type": "SYMBOL",
977
+ "name": "parenthesized_type"
978
+ },
979
+ {
980
+ "type": "SYMBOL",
981
+ "name": "array_type"
914
982
  }
915
983
  ]
916
984
  },
@@ -940,6 +1008,10 @@
940
1008
  {
941
1009
  "type": "STRING",
942
1010
  "value": "void"
1011
+ },
1012
+ {
1013
+ "type": "STRING",
1014
+ "value": "function"
943
1015
  }
944
1016
  ]
945
1017
  },
@@ -1327,6 +1399,40 @@
1327
1399
  }
1328
1400
  ]
1329
1401
  },
1402
+ "parenthesized_type": {
1403
+ "type": "SEQ",
1404
+ "members": [
1405
+ {
1406
+ "type": "STRING",
1407
+ "value": "("
1408
+ },
1409
+ {
1410
+ "type": "SYMBOL",
1411
+ "name": "_type"
1412
+ },
1413
+ {
1414
+ "type": "STRING",
1415
+ "value": ")"
1416
+ }
1417
+ ]
1418
+ },
1419
+ "array_type": {
1420
+ "type": "PREC",
1421
+ "value": 3,
1422
+ "content": {
1423
+ "type": "SEQ",
1424
+ "members": [
1425
+ {
1426
+ "type": "SYMBOL",
1427
+ "name": "_type"
1428
+ },
1429
+ {
1430
+ "type": "STRING",
1431
+ "value": "[]"
1432
+ }
1433
+ ]
1434
+ }
1435
+ },
1330
1436
  "union_type": {
1331
1437
  "type": "PREC_LEFT",
1332
1438
  "value": 1,
@@ -1380,7 +1486,7 @@
1380
1486
  "value": -1,
1381
1487
  "content": {
1382
1488
  "type": "PATTERN",
1383
- "value": "[^*{}@\\s][^*{}@\\n]*"
1489
+ "value": "[^*{}@\\s][^*{}@\\n\\r]*"
1384
1490
  }
1385
1491
  }
1386
1492
  }