Skip to content

Commit

Permalink
CustomModule.Type does not highlight CustomModule as a type anymore. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer authored Jul 12, 2022
1 parent c5f52ad commit bea5906
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/test/highlight/regression-highlight.dfy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Issue #194
method f(x: OtherModule.CustomType, z: int) {
//^ module should be white, `CustomType` should be blue
var y := OtherModule.methodName();
}


// Issue #176
class ClassList {
ghost var classes: set<string>
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/Dafny.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?<!\{|:):\s*([\w'?]+\b(?!&lt;))</string>
<string>(?<!\{|:):\s*(?:[\w'?]+\.)*([\w'?]+\b(?!&lt;))</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down

0 comments on commit bea5906

Please sign in to comment.