Skip to content

Commit bea5906

Browse files
authored
CustomModule.Type does not highlight CustomModule as a type anymore. (#199)
1 parent c5f52ad commit bea5906

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/test/highlight/regression-highlight.dfy

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Issue #194
2+
method f(x: OtherModule.CustomType, z: int) {
3+
//^ module should be white, `CustomType` should be blue
4+
var y := OtherModule.methodName();
5+
}
6+
7+
18
// Issue #176
29
class ClassList {
310
ghost var classes: set<string>

syntaxes/Dafny.tmLanguage

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@
487487
</dict>
488488
<dict>
489489
<key>begin</key>
490-
<string>(?<!\{|:):\s*([\w'?]+\b(?!&lt;))</string>
490+
<string>(?<!\{|:):\s*(?:[\w'?]+\.)*([\w'?]+\b(?!&lt;))</string>
491491
<key>beginCaptures</key>
492492
<dict>
493493
<key>1</key>

0 commit comments

Comments
 (0)