Skip to content

Commit

Permalink
Fix alias name of quoted_content in triple quoted strings
Browse files Browse the repository at this point in the history
This was "quoted_contents" but should be "quoted_content" for
consistency with non-triple-quoted strings and sigils.
  • Loading branch information
the-mikedavis committed Feb 18, 2024
1 parent 731e505 commit fb03cc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ module.exports = grammar({
_triple_quoted_string: ($) =>
seq(
field("quoted_start", '"""'),
optional(alias($._triple_quoted_string_contents, $.quoted_contents)),
optional(alias($._triple_quoted_string_contents, $.quoted_content)),
field("quoted_end", '"""')
),

Expand Down
2 changes: 1 addition & 1 deletion test/corpus/sigils.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ All contents are verbatim, even this: ~r"abc\d+"i.
(source
(sigil
(sigil_prefix)
(quoted_contents)))
(quoted_content)))
4 changes: 2 additions & 2 deletions test/corpus/terms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Hello "world"

(source
(string
(quoted_contents))
(quoted_content))
(string
(quoted_contents)))
(quoted_content)))

================================================================================
atoms
Expand Down

0 comments on commit fb03cc4

Please sign in to comment.