From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 15:38:20 +0000 (+0200) Subject: Add throw matcher X-Git-Url: https://git.r.bdr.sh/rbdr/api-notation.vim/commitdiff_plain/83cf70a781bb695bf6f5014a7399d4eab6aa784d?ds=inline Add throw matcher --- diff --git a/syntax/api-notation.vim b/syntax/api-notation.vim index 4ac58ec..c3bbe29 100644 --- a/syntax/api-notation.vim +++ b/syntax/api-notation.vim @@ -14,7 +14,7 @@ syn match comment '\s*//\s*.*' syn match classMembers '^\s\+\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' nextgroup=memberName skipwhite syn match internalOperators '\(\(<+\)\|\(<\~\)\|\(<-\)\|\(+>\)\|\(\~>\)\|\(->\)\|-\|+\|\(::\)\|#\)' contained nextgroup=memberName skipwhite syn match returnIdentifiers '\(=>\)' nextgroup=returnValue -syn match returnIdentifiers '\(->\)' +syn match throwIdentifiers '\(#>\)' nextgroup=throwValue syn match memberName '\w\+' contained nextgroup=internalOperators,spacedDataType @@ -29,6 +29,7 @@ syn match dataTypes '\w\+' contained syn match separators '|\|,' contained syn match returnValue '.*' contained contains=dataType,parameters +syn match throwValue '.*' contained contains=dataType,parameters " Nest JSON syn include @JSON syntax/json.vim @@ -38,6 +39,7 @@ hi def link moduleName Identifier hi def link classMembers Operator hi def link returnIdentifiers Operator +hi def link throwIdentifiers Operator hi def link internalOperators Operator hi def link memberName Special