File tree 1 file changed +54
-11
lines changed
1 file changed +54
-11
lines changed Original file line number Diff line number Diff line change 59
59
(add-to-list 'auto-mode-alist '(" \\ .sol\\ '" . solidity-mode))
60
60
61
61
(defconst solidity-keywords
62
- '(" break"
63
- " case"
64
- " const"
62
+ '(" after"
63
+ " break"
64
+ " constant"
65
+ " anonymous"
65
66
" continue"
66
67
" contract"
67
68
" default"
68
69
" delete"
69
70
" do"
70
71
" else"
72
+ " event"
73
+ " external"
71
74
" for"
72
75
" function"
73
76
" if"
74
77
" in"
78
+ " is"
79
+ " indexed"
75
80
" mapping"
81
+ " modifier"
76
82
" new"
77
83
" private"
78
84
" public"
85
+ " internal"
79
86
" return"
80
87
" returns"
81
88
" struct"
82
89
" switch"
83
90
" this"
84
91
" var"
85
92
" while"
86
- " constant "
93
+ " enum "
87
94
)
88
95
" Keywords of the solidity language." )
89
96
92
99
" wei"
93
100
" szabo"
94
101
" finney"
95
- " ether" )
102
+ " ether"
103
+ " seconds"
104
+ " minutes"
105
+ " hours"
106
+ " days"
107
+ " weeks"
108
+ " years"
109
+ )
96
110
" Constants in the solidity language." )
97
111
98
112
(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"
105
148
" int"
106
149
" int8"
107
150
" int16"
You can’t perform that action at this time.
0 commit comments