Skip to content

Commit

Permalink
parser: add qualified name to primitive types
Browse files Browse the repository at this point in the history
Partially fixes #21, it probably should not be treated as primitive type
but it get the job done
  • Loading branch information
jkbz64 committed Dec 4, 2023
1 parent bbc1eb0 commit 8e3eb02
Show file tree
Hide file tree
Showing 5 changed files with 22,215 additions and 22,685 deletions.
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ module.exports = grammar({
kw("RECID"),
kw("ROWID"),
kw("HANDLE"),
kw("COM-HANDLE")
kw("COM-HANDLE"),
$.qualified_name
),

number_literal: ($) => /[0-9]+/,
Expand Down
4 changes: 4 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,10 @@
},
"named": false,
"value": "COM-HANDLE"
},
{
"type": "SYMBOL",
"name": "qualified_name"
}
]
},
Expand Down
12 changes: 11 additions & 1 deletion src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,17 @@
{
"type": "primitive_type",
"named": true,
"fields": {}
"fields": {},
"children": {
"multiple": false,
"required": false,
"types": [
{
"type": "qualified_name",
"named": true
}
]
}
},
{
"type": "procedure_parameter_definition",
Expand Down
Loading

0 comments on commit 8e3eb02

Please sign in to comment.