Skip to content

Commit

Permalink
Allow backslashes to escape newlines anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Mar 3, 2024
1 parent 34d42c7 commit 66a687a
Show file tree
Hide file tree
Showing 6 changed files with 1,520 additions and 1,413 deletions.
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ module.exports = grammar({
$.error_recovery,
],

extras: ($) => [$.comment, /\s/],
// Allow comments, whitespace, and backslash-escaped newlines anywhere
extras: ($) => [$.comment, /\s/, /\\\n/],

inline: ($) => [
$._string,
Expand Down
4 changes: 4 additions & 0 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 66a687a

Please sign in to comment.