diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2022-02-21 00:04:43 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2022-02-21 00:04:43 +0100 |
commit | 1d1f36b24ea601eb950865982e05b875aa702330 (patch) | |
tree | 94b9af10f5801fb3711088ee4f879e6995ae73c9 /syntax/solidity.vim | |
parent | b77c5f11070ecb2ff343aa18b4ea859e6168f16c (diff) | |
download | vim-polyglot-1d1f36b24ea601eb950865982e05b875aa702330.tar.gz vim-polyglot-1d1f36b24ea601eb950865982e05b875aa702330.zip |
Use old version of vim repository, fixes #779v4.17.1
closes #780
Diffstat (limited to 'syntax/solidity.vim')
-rw-r--r-- | syntax/solidity.vim | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/syntax/solidity.vim b/syntax/solidity.vim index 55e007bd..516f207f 100644 --- a/syntax/solidity.vim +++ b/syntax/solidity.vim @@ -120,11 +120,11 @@ syn region solFuncModParens contained contains=solString,solFuncCall,solCo \ end=')' syn keyword solFuncReturn contained nextgroup=solFuncRetParens skipwhite skipempty returns syn region solFuncRetParens contains=solValueType,solFuncStorageType nextgroup=solFuncBody skipempty skipwhite - \ start='(' - \ end=')' + \ start='(' + \ end=')' syn region solFuncBody contained contains=solDestructure,solComment,solAssemblyBlock,solEmitEvent,solTypeCast,solMethod,solValueType,solConstant,solKeyword,solRepeat,solLabel,solException,solStructure,solFuncStorageType,solOperator,solNumber,solString,solFuncCall,solIf,solElse,solLoop skipempty skipwhite - \ start='{' - \ end='}' + \ start='{' + \ end='}' syn match solFuncCall contained skipempty skipwhite nextgroup=solCallOptions,solFuncCallParens \ '\v%(%(<if>|<uint>|<int>|<ufixed>|<bytes>|<address>|<string>|<bool>)\s*)@<!<[a-zA-Z_][0-9a-zA-Z_]*\s*%((\{(\n|.|\s)*\})?\s*(\((\n|.|\s)*\)))@=' syn region solFuncCallParens contained transparent contains=solComment,solString,solFuncCall,solConstant,solNumber,solMethod,solTypeCast,solComma,solOperator @@ -185,6 +185,12 @@ hi def link solEventName Function hi def link solEventParamMod Keyword hi def link solEmitEvent Special +" Errors +syn match solError /\<error\>/ nextgroup=solErrorName,solFuncParams skipwhite +syn match solErrorName /\<[a-zA-Z_][0-9a-zA-Z_]*/ nextgroup=solFuncParam contained skipwhite + +hi def link solErrorName Function + " Constants syn keyword solConstant true false wei szabo finney ether seconds minutes hours days weeks years now super syn keyword solConstant block msg now tx this abi |