Skip to content

Commit

Permalink
fix: modeline support
Browse files Browse the repository at this point in the history
modeline has to be the last line in a file

fixes #128
  • Loading branch information
clason committed Mar 14, 2024
1 parent 90a3962 commit 3089b79
Show file tree
Hide file tree
Showing 3 changed files with 877 additions and 912 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = grammar({
seq(
repeat($._blank), // Eat blank lines at top of file.
repeat($.block),
repeat($.modeline),
optional($.modeline),
),

_atom: ($) => choice(
Expand Down
15 changes: 10 additions & 5 deletions src/grammar.json

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

Loading

0 comments on commit 3089b79

Please sign in to comment.