Skip to content

Commit a2865eb

Browse files
fix: name in external body should be optional
1 parent 7c68e1c commit a2865eb

File tree

4 files changed

+1480
-1420
lines changed

4 files changed

+1480
-1420
lines changed

grammar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ module.exports = grammar({
263263
external_body: ($) =>
264264
seq(
265265
token(prec(PREC.BODY_PREFIX, "<")),
266-
optional(seq("@", field("name", $.identifier))),
266+
optional(seq("@", optional(field("name", $.identifier)))),
267267
WS,
268268
field("path", $.path),
269269
),

src/grammar.json

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

0 commit comments

Comments
 (0)