Skip to content

Commit

Permalink
Fix multiline syntax. (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Aug 7, 2023
1 parent be87c7f commit 1f4ec0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vscode/syntaxes/toit.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
"multi-line-string": {
"name": "string.quoted.double.toit",
"begin": "\"\"\"",
"end": "\"\"\"",
"end": "\"\"\"(?!\")|\"\"\"\"\"",
"patterns": [
{
"name": "constant.character.escape.toit",
Expand Down
2 changes: 1 addition & 1 deletion vscode/syntaxes/toit.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ repository:
multi-line-string:
name: string.quoted.double.toit
begin: '"""'
end: '"""'
end: '"""(?!")|"""""' # Triple quotes, unless followed by a ". However, at most 5 quotes.
patterns:
- name: constant.character.escape.toit
match: \\.
Expand Down

0 comments on commit 1f4ec0e

Please sign in to comment.