Skip to content

Commit 87b74c4

Browse files
committed
Updating keywords
1 parent 8c8b79c commit 87b74c4

File tree

1 file changed

+54
-11
lines changed

1 file changed

+54
-11
lines changed

solidity-mode.el

+54-11
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,38 @@
5959
(add-to-list 'auto-mode-alist '("\\.sol\\'" . solidity-mode))
6060

6161
(defconst solidity-keywords
62-
'("break"
63-
"case"
64-
"const"
62+
'("after"
63+
"break"
64+
"constant"
65+
"anonymous"
6566
"continue"
6667
"contract"
6768
"default"
6869
"delete"
6970
"do"
7071
"else"
72+
"event"
73+
"external"
7174
"for"
7275
"function"
7376
"if"
7477
"in"
78+
"is"
79+
"indexed"
7580
"mapping"
81+
"modifier"
7682
"new"
7783
"private"
7884
"public"
85+
"internal"
7986
"return"
8087
"returns"
8188
"struct"
8289
"switch"
8390
"this"
8491
"var"
8592
"while"
86-
"constant"
93+
"enum"
8794
)
8895
"Keywords of the solidity language.")
8996

@@ -92,16 +99,52 @@
9299
"wei"
93100
"szabo"
94101
"finney"
95-
"ether")
102+
"ether"
103+
"seconds"
104+
"minutes"
105+
"hours"
106+
"days"
107+
"weeks"
108+
"years"
109+
)
96110
"Constants in the solidity language.")
97111

98112
(defconst solidity-builtin-types
99-
'("address" "bool"
100-
"hash" "hash8" "hash16" "hash24" "hash32" "hash40" "hash48" "hash56"
101-
"hash64" "hash72" "hash80" "hash88" "hash96" "hash104" "hash112" "hash120"
102-
"hash128" "hash136" "hash144" "hash152" "hash160" "hash168" "hash178"
103-
"hash184" "hash192" "hash200" "hash208" "hash216" "hash224" "hash224"
104-
"hash232" "hash240" "hash248" "hash256"
113+
'("bool"
114+
"bytes"
115+
"bytes0"
116+
"bytes1"
117+
"bytes2"
118+
"bytes3"
119+
"bytes4"
120+
"bytes5"
121+
"bytes6"
122+
"bytes7"
123+
"bytes8"
124+
"bytes9"
125+
"bytes10"
126+
"bytes11"
127+
"bytes12"
128+
"bytes13"
129+
"bytes14"
130+
"bytes15"
131+
"bytes16"
132+
"bytes17"
133+
"bytes18"
134+
"bytes19"
135+
"bytes20"
136+
"bytes21"
137+
"bytes22"
138+
"bytes23"
139+
"bytes24"
140+
"bytes25"
141+
"bytes26"
142+
"bytes27"
143+
"bytes28"
144+
"bytes29"
145+
"bytes30"
146+
"bytes31"
147+
"bytes32"
105148
"int"
106149
"int8"
107150
"int16"

0 commit comments

Comments
 (0)