Skip to content

Commit d0a09c6

Browse files
committed
Add newer solidity modifiers and keywords
1 parent bad1d4d commit d0a09c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

solidity-mode.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@
9797
"private"
9898
"public"
9999
"internal"
100+
"pure"
101+
"view"
100102
"return"
101103
"returns"
102104
"struct"
@@ -107,6 +109,9 @@
107109
"while"
108110
"enum"
109111
"throw"
112+
"assert"
113+
"require"
114+
"revert"
110115
"storage"
111116
"memory"
112117
)
@@ -384,7 +389,7 @@ Highlight the 1st result."
384389
Highlight the 1st result."
385390
(solidity-match-regexp
386391
(concat
387-
" *\\(mapping\\) +(.*) *\\("(regexp-opt solidity-variable-modifier) " \\)*\\(" solidity-identifier-regexp "\\)")
392+
" *\\(mapping\\) *(.*) *\\("(regexp-opt solidity-variable-modifier) " \\)*\\(" solidity-identifier-regexp "\\)")
388393
limit))
389394

390395
(defun solidity-match-variable-decls (limit)

0 commit comments

Comments
 (0)