Skip to content

Commit

Permalink
allow space after backslash to act as line continuation (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek authored Apr 19, 2024
1 parent ecea7ac commit 40eceef
Show file tree
Hide file tree
Showing 5 changed files with 4,199 additions and 5,700 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ module.exports = grammar({
)
),

line_continuation: ($) => "\\\n",
line_continuation: ($) => /\\[ \t]*\n/,
required_line_continuation: ($) => "\\\n",

_comment_line: ($) => seq(alias($._anon_comment, $.comment), "\n"),
Expand Down
4 changes: 2 additions & 2 deletions src/grammar.json

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

13 changes: 4 additions & 9 deletions src/node-types.json

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

Loading

0 comments on commit 40eceef

Please sign in to comment.