Skip to content

Commit

Permalink
Fixes "this" highlight (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer authored Jun 13, 2023
1 parent d476f0c commit d043f68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/test/highlight/regression-highlight.dfy
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Issue #386
method Test(thisNat: nat, dothis: nat) {
//^^^^ ^^^^ this should not be highlighted separatedly in blue
}

// Support for opaque keyword
opaque function Test(): int { 1 }
//^^^^ should be highlighted as a keyword
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/Dafny.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
</dict>
<dict>
<key>match</key>
<string>this</string>
<string>\bthis\b</string>
<key>name</key>
<string>storage.type.dafny</string>
</dict>
Expand Down

0 comments on commit d043f68

Please sign in to comment.