Skip to content

Commit

Permalink
Very wip
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Aug 7, 2024
1 parent 198d035 commit a63001f
Show file tree
Hide file tree
Showing 13 changed files with 298,471 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/node/gts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bindings/node/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions common/define-grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ module.exports = function defineGrammar(dialect) {
choices.push(...previous.members.filter((member) =>
member.name !== '_jsx_element',
));
} else if (dialect === 'gts') {
choices.push($.type_assertion);
choices.push(...previous.members.filter((member) =>
member.name !== '_jsx_element',
));
} else if (dialect === 'tsx') {
choices.push(...previous.members);
} else {
Expand Down
3 changes: 3 additions & 0 deletions gts/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions gts/grammar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const defineGrammar = require('../common/define-grammar');

module.exports = defineGrammar('gts');
3 changes: 3 additions & 0 deletions gts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"main": "../bindings/node/gts"
}
Loading

0 comments on commit a63001f

Please sign in to comment.