Skip to content

Commit 8458527

Browse files
committed
Fix = scope for module
1 parent 26c20f5 commit 8458527

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ReScript.sublime-syntax

+1-3
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ contexts:
130130
- match:
131131
'->|\|\||&&|\+\+|\*\*|\+\.|\+|-\.|-|\*\.|\*|/\.|/|\.\.\.|\.\.|\|>|===|==|\^|:=|!|>=(?! *\?)|<='
132132
scope: keyword.operator
133-
134-
assignment:
135133
- match: '='
136134
scope: keyword.operator.assignment
137135

@@ -269,6 +267,7 @@ contexts:
269267
1: punctuation.section.braces.begin
270268
push: moduleInner
271269
- match: '='
270+
scope: keyword.operator.assignment
272271
set: moduleRHS
273272
- match: '(?=\S)'
274273
pop: true
@@ -294,7 +293,6 @@ contexts:
294293
- include: array
295294
- include: jsx
296295
- include: operator
297-
- include: assignment
298296
- include: number
299297
- include: openOrIncludeModule
300298
- include: moduleDeclaration

syntax_test.res

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ Foo.Some(Bar())
165165
Foo.make(Bar())
166166
module Bla = Belt.Map.Make(Bar({type t let a:b = "cc"}))
167167
// ^ source.res entity.name.namespace
168+
// ^ keyword.operator.assignment
168169
// ^ source.res entity.name.namespace
169170
// ^ source.res entity.name.namespace
170171
// ^ source.res punctuation.section.parens.begin

0 commit comments

Comments
 (0)