Skip to content

Commit 3089b79

Browse files
committed
fix: modeline support
modeline has to be the last line in a file fixes #128
1 parent 90a3962 commit 3089b79

File tree

3 files changed

+877
-912
lines changed

3 files changed

+877
-912
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = grammar({
2626
seq(
2727
repeat($._blank), // Eat blank lines at top of file.
2828
repeat($.block),
29-
repeat($.modeline),
29+
optional($.modeline),
3030
),
3131

3232
_atom: ($) => choice(

src/grammar.json

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

0 commit comments

Comments
 (0)