Skip to content

Commit

Permalink
Fixed #201 the stop sign for multiline strings
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer committed Jul 12, 2022
1 parent dc0ada8 commit c53b2de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/test/highlight/regression-highlight.dfy
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Issue #201
const x := @"
This is an escaped double quote ""
This should be in the multiline string too
"

// Issue #194
method f(x: OtherModule.CustomType, z: int) {
//^ module should be white, `CustomType` should be blue
Expand Down
6 changes: 3 additions & 3 deletions syntaxes/Dafny.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@
<key>begin</key>
<string>@"</string>
<key>end</key>
<string>"</string>
<string>"(?!")</string>
<key>name</key>
<string>string.dafny</string>
<string>string.multiline.dafny</string>
<key>patterns</key>
<array>
<dict>
Expand All @@ -328,7 +328,7 @@
<key>end</key>
<string>("|\n)</string>
<key>name</key>
<string>string.dafny</string>
<string>string.singleline.dafny</string>
<key>patterns</key>
<array>
<dict>
Expand Down

0 comments on commit c53b2de

Please sign in to comment.