Skip to content

Commit 34b8cd4

Browse files
committed
Make block rule anonymous in chunk
1 parent 0f3a579 commit 34b8cd4

File tree

6 files changed

+734
-749
lines changed

6 files changed

+734
-749
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = grammar({
3838
name: "lua",
3939

4040
rules: {
41-
chunk: ($) => optional($.block),
41+
chunk: ($) => optional(alias($.block, "block")),
4242

4343
block: ($) =>
4444
choice(

src/grammar.json

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)