Skip to content

Commit

Permalink
fix underindented multiline strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsidorenco committed Jun 18, 2024
1 parent 2aff22f commit 76e36a8
Show file tree
Hide file tree
Showing 5 changed files with 61,415 additions and 61,307 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ module.exports = grammar({
string: ($) => choice($._string_literal, $.format_string),

_verbatim_string_char: ($) =>
choice($._simple_string_char, $._non_escape_char, "\\"),
choice($._simple_string_char, $._non_escape_char, "\\", /\"\"/),
verbatim_string: ($) =>
seq('@"', repeat($._verbatim_string_char), token.immediate('"')),
bytearray: ($) => seq('"', repeat($._string_char), token.immediate('"B')),
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 76e36a8

Please sign in to comment.