diff --git a/syntax/reason.vim b/syntax/reason.vim index cc33046..1d6a165 100644 --- a/syntax/reason.vim +++ b/syntax/reason.vim @@ -14,64 +14,45 @@ endif " Syntax definitions {{{1 " Basic keywords {{{2 -syn keyword reasonConditional switch match if else for in when fun -syn keyword reasonOperator as +syn keyword reasonConditional try switch if else for while +syn keyword reasonOperator as to downto -syn match reasonAssert "\[^\.]"me=e-1 +syn match reasonConstructor "\<\u\(\w\|'\)*\>" " Polymorphic variants -syn match reasonEnumVariant "`\w\(\w\|'\)*\>" +syn match reasonConstructor "`\w\(\w\|'\)*\>" -syn match reasonModPath "\<\u\w*\." +syn match reasonModPath "\<\u\(\w\|'\)* *\."he=e-1 +syn match reasonModPath "\(\