Skip to content

Commit 0fbc5d4

Browse files
committed
Fix arrow token after a nested module captured weird stuff elsewhere
1 parent 186a16d commit 0fbc5d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ReScript.sublime-syntax

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ contexts:
269269
captures:
270270
1: punctuation.section.braces.begin
271271
push: moduleInner
272-
- match: '='
272+
- match: '=[^\S]'
273273
scope: keyword.operator.assignment
274274
set: moduleRHS
275275
- match: '(?=\S)'

syntax_test.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,5 +424,5 @@ let getAudience = (~excited) => excited ? "world!" : "world"
424424

425425
@bs.module external foo: {..} => {..} = "bla"
426426
// ^^ keyword.operator
427-
// ^^ keyword.operator
427+
// ^^ storage.type.function keyword.declaration.function
428428
// ^^ keyword.operator

0 commit comments

Comments
 (0)