File tree 2 files changed +34
-12
lines changed
2 files changed +34
-12
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,10 @@ contexts:
128
128
129
129
operator :
130
130
- match :
131
- ' ->|\|\||&&|\+\+|\*\*|\+\.|\+|-\.|-|\*\.|\*|/\.|/|\.\.\.|\.\.|\|>| ===|==|\^|:=|!|>=(?! *\?)|<=|='
131
+ ' ->|\|\||&&|\+\+|\*\*|\+\.|\+|-\.|-|\*\.|\*|/\.|/|\.\.\.|\.\.|\|===|==|\^|:=|!|>=(?! *\?)|<=|='
132
132
scope : keyword.operator
133
+ - match : ' \|>'
134
+ scope : invalid.deprecated
133
135
134
136
# doesn't contain ` unlike reason-highlightjs
135
137
constructor :
@@ -178,13 +180,16 @@ contexts:
178
180
push : attributeContent
179
181
attributeContent :
180
182
- meta_scope : meta.annotation
181
- # - match: '{{RE_ATTRIBUTE}} *\('
182
- # scope: variable.annotation
183
- # push:
184
- # - match: \)
185
- # pop: true
186
- - match : ' {{RE_ATTRIBUTE}}'
187
- scope : variable.annotation
183
+ - match : ' bs\.send\.pipe'
184
+ scope : invalid.deprecated
185
+ pop : true
186
+ - match : ' splice'
187
+ scope : invalid.illegal
188
+ pop : true
189
+ - match : ' (bs\.)?({{RE_ATTRIBUTE}})'
190
+ captures :
191
+ 1 : invalid.deprecated
192
+ 2 : variable.annotation
188
193
pop : true
189
194
190
195
jsx :
Original file line number Diff line number Diff line change @@ -425,7 +425,24 @@ let getAudience = (~excited) => excited ? "world!" : "world"
425
425
426
426
// === external
427
427
428
- @bs. module external foo : {.. } => {.. } = "bla"
429
- // ^^ keyword.operator
430
- // ^^ storage.type.function keyword.declaration.function
431
- // ^^ keyword.operator
428
+ @module external foo : {.. } => {.. } = "bla"
429
+ // ^^^^^^ meta.annotation variable.annotation
430
+ // ^^ keyword.operator
431
+ // ^^ storage.type.function keyword.declaration.function
432
+ // ^^ keyword.operator
433
+
434
+
435
+ // === deprecated
436
+
437
+ myList |> map
438
+ // ^^ invalid.deprecated
439
+ @bs.send.pipe external a : b => c = ""
440
+ // ^^^^^^^^^^^^ meta.annotation invalid.deprecated
441
+ @bs. module external a : b = ""
442
+ // ^^^ meta.annotation invalid.deprecated
443
+ @splice external a : b = ""
444
+ // ^^^^^^ meta.annotation invalid.illegal
445
+ @bs. variadic external a : b = ""
446
+ // ^^^ meta.annotation invalid.deprecated
447
+ @variadic external a : b = "" // works
448
+ // ^^^^^^^^ meta.annotation variable.annotation
You can’t perform that action at this time.
0 commit comments