Skip to content

Commit ac181a1

Browse files
committed
Fix open/include highlighting boundary
1 parent c14ee3c commit ac181a1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ReScript.sublime-syntax

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ contexts:
203203
push: moduleAccessEndsWithModuleThenPop
204204

205205
openOrIncludeModule:
206-
- match: '\b(open|include)\s*'
206+
- match: '\b(open|include)\s+'
207207
scope: keyword
208208
push: moduleAccessEndsWithModuleThenPop
209209

syntax_test.res

+3
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ let getProfession = (person) =>
125125
| rest => "..."
126126
}
127127

128+
let openSesame = 1
129+
// ^^^^^^^^^^ source.res
130+
128131
open Soup
129132
// <- source.res keyword
130133
// ^^^^ entity.name.namespace

0 commit comments

Comments
 (0)