Skip to content

Commit

Permalink
fix function argument attributes issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhq committed Aug 8, 2019
1 parent d10aa83 commit ee1a818
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Solidity.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ contexts:
function-argument:
- include: function
- include: mapping
- match: '\b(?:({{type}})|({{custom_type}}))(?:\[(\d*)\])?\s+({{attribute}})\s+({{identifier}}\b)'
# identifier is optional for cases like this: function bar(bytes memory, ...
- match: '\b(?:({{type}})|({{custom_type}}))(?:\[(\d*)\])?\s+({{attribute}})(\s+{{identifier}}\b)?'
captures:
1: constant.language
2: scope
Expand Down

0 comments on commit ee1a818

Please sign in to comment.