From 6509ad07981a20575975fefc327403fe40d5e6a5 Mon Sep 17 00:00:00 2001 From: Justin Noah Date: Sat, 4 Feb 2017 23:47:20 -0800 Subject: [PATCH] More => highlighting Add additional highlights of => ```regex \( \[\|,\s\+\| (\s*\| \w\+"\=\s\+ \)\@<==> ``` --- syntax/monte.vim | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/syntax/monte.vim b/syntax/monte.vim index afa3d22..f039e98 100644 --- a/syntax/monte.vim +++ b/syntax/monte.vim @@ -82,9 +82,13 @@ syn match monteOperator ' &!' syn match monteOperator ' ||' syn match monteOperator ' \*\*' syn match monteOperator '\w\+=' - -" Pairs -syn match montePair '=>' +" [=> module +" (=> keywordArg +" (arg, => keywordArg +syn match monteOperator '\(\[\|,\s\+\|(\s*\)\@<==>' +" Pairs - this can be folded into the regex above, however, this +" helps keep track of different uses +syn match monteOperator '\(\w\+"\=\s\+\)\@<==>' " Errors syn match monteEqualError ' =[^~=>]' @@ -111,7 +115,7 @@ hi def link monteHole Identifier hi def link monteQLEscape SpecialChar hi def link monteGuard Type hi def link monteOperator Operator -hi def link montePair Delimiter +" hi def link montePair Delimiter hi def link monteEqualError Error " hi def link monteIdentifier Identifier