Skip to content

Commit 65ca0d5

Browse files
feat: add left and right fields to type_alias_statement
Co-authored-by: Amaan Qureshi <[email protected]>
1 parent 1124c18 commit 65ca0d5

File tree

6 files changed

+278
-164
lines changed

6 files changed

+278
-164
lines changed

grammar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,9 @@ module.exports = grammar({
462462

463463
type_alias_statement: $ => prec.dynamic(1, seq(
464464
'type',
465-
$.type,
465+
field('left', $.type),
466466
'=',
467-
$.type,
467+
field('right', $.type),
468468
)),
469469

470470
class_definition: $ => seq(

src/grammar.json

+12-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

+21-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)