Skip to content

Commit

Permalink
fix a bug in the generated grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 10, 2024
1 parent 4939dba commit 0e7f106
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/primitive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,9 @@ mod tests {
{{
"include": "#comments"
}},
{{
"include": "#strings-multiline-format"
}},
{{
"include": "#strings-multiline"
}},
Expand Down Expand Up @@ -1866,12 +1869,13 @@ mod tests {
"strings-multiline": {{
"name": "constant.character.escape",
"begin": "\\$ ",
"end": "$"
}},
"strings-multiline-format": {{
"name": "constant.character.escape",
"begin": "\\$\\$ ",
"end": "$",
"patterns": [
{{
"name": "string.quoted",
"match": "\\\\[\\\\\"0nrt_]"
}},
{{
"name": "constant.numeric",
"match": "(?<!\\\\)_"
Expand Down

0 comments on commit 0e7f106

Please sign in to comment.