Skip to content

Commit

Permalink
feat: add left and right fields to type_alias_statement
Browse files Browse the repository at this point in the history
Co-authored-by: Amaan Qureshi <[email protected]>
  • Loading branch information
vanessa-rodrigues and amaanq authored Dec 22, 2024
1 parent 1124c18 commit 65ca0d5
Show file tree
Hide file tree
Showing 6 changed files with 278 additions and 164 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ module.exports = grammar({

type_alias_statement: $ => prec.dynamic(1, seq(
'type',
$.type,
field('left', $.type),
'=',
$.type,
field('right', $.type),
)),

class_definition: $ => seq(
Expand Down
16 changes: 12 additions & 4 deletions src/grammar.json

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

31 changes: 21 additions & 10 deletions src/node-types.json

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

Loading

0 comments on commit 65ca0d5

Please sign in to comment.