File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 808
808
' module-signature' :
809
809
' patterns' : [
810
810
{
811
- ' begin' : ' (val)\\ s+([a-z_][a-zA-Z0-9_\' ]*)\\ s*(:)'
811
+ ' begin' : ' (val)\\ s+(( [a-z_][a-zA-Z0-9_\' ]*)|( \\ ( \\ s*[=<>@^&+ \\ -*/$%|][|!$%&*+./:<=>?@^~-]* \\ s* \\ )) )\\ s*(:)'
812
812
' beginCaptures' :
813
813
' 1' :
814
814
' name' : ' keyword.other.ocaml'
815
815
' 2' :
816
816
' name' : ' entity.name.type.value-signature.ocaml'
817
- ' 3 ' :
817
+ ' 5 ' :
818
818
' name' : ' punctuation.separator.type-constraint.ocaml'
819
819
' end' : ' (?=\\ b(type|val|external|class|module|end)\\ b)|^\\ s*$'
820
820
' name' : ' meta.module.signature.val.ocaml'
Original file line number Diff line number Diff line change @@ -50,3 +50,17 @@ begin fun x -> y end
50
50
// ^ keyword . operator . infix . integer . ocaml
51
51
a |>b
52
52
// ^^ entity . name . function . infix . ocaml
53
+ val test : a -> b
54
+ // <- keyword . other . ocaml
55
+ // ^^^^ entity . name . type . value -signature . ocaml
56
+ // ^ punctuation . separator . type -constraint . ocaml
57
+ // ^ storage . type . ocaml
58
+ // ^^ punctuation . separator . function -return . ocaml
59
+ // ^ storage . type . ocaml
60
+ val ( >> ) : a -> b
61
+ // <- keyword . other . ocaml
62
+ // ^^^^^^ entity . name . type . value -signature . ocaml
63
+ // ^ punctuation . separator . type -constraint . ocaml
64
+ // ^ storage . type . ocaml
65
+ // ^ ^ punctuation . separator . function -return . ocaml
66
+ // ^ storage . type . ocaml
You can’t perform that action at this time.
0 commit comments