Skip to content

Commit 9848d2a

Browse files
committedFeb 7, 2021
Highlight operators for textmate
1 parent 4bd3e82 commit 9848d2a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎ReScript.sublime-syntax

+5-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ contexts:
129129
operator:
130130
- match:
131131
'->|\|\||&&|\+\+|\*\*|\+\.|\+|-\.|-|\*\.|\*|/\.|/|\.\.\.|\.\.|\|===|==|\^|:=|!|>=(?! *\?)|<=|='
132-
scope: keyword.operator
132+
# gotta add `keyword` to this scope. This file is synced with our vscode
133+
# textmate grammar too, and many themes there don't highlight
134+
# `keyword.operator`. So we'll highlight them as `keyword`
135+
scope: keyword.operator keyword.
133136
- match: '\|>'
134137
scope: invalid.deprecated
135138

@@ -273,7 +276,7 @@ contexts:
273276
1: punctuation.section.braces.begin
274277
push: moduleInner
275278
- match: '=[^\S]'
276-
scope: keyword.operator
279+
scope: keyword.operator keyword
277280
set: moduleRHS
278281
- match: '(?=\S)'
279282
pop: true

0 commit comments

Comments
 (0)
Please sign in to comment.