Skip to content

Commit 6c0dd80

Browse files
authored
Merge pull request #29 from favadi/constructor-keyword
adds constructor as keyword
2 parents 4f1a894 + cbca3fd commit 6c0dd80

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

changelog.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The changelog starts from version 0.1.4 as too much was added in each version be
88

99
- Fixed flycheck integration doesn't search for solc and solium in PATH.
1010

11+
- Add `constructor` as keyword.
12+
1113
## Version 0.1.9
1214

1315
- Integrated [company-solidity](https://github.com/ssmolkin1/company-solidity) into solidity-mode, providing autocompletion out of the box if the user has [company-mode](http://company-mode.github.io) installed.

solidity-mode.el

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,53 +83,54 @@ Possible values are:
8383

8484
(defconst solidity-keywords
8585
'("after"
86+
"anonymous"
8687
"as"
8788
"assembly"
89+
"assert"
8890
"break"
8991
"constant"
90-
"anonymous"
92+
"constructor"
9193
"continue"
9294
"contract"
9395
"default"
9496
"delete"
9597
"do"
9698
"else"
9799
"emit"
100+
"enum"
98101
"event"
99102
"external"
100103
"for"
101104
"function"
102105
"if"
103106
"import"
104107
"in"
105-
"is"
106108
"indexed"
107109
"interface"
110+
"internal"
111+
"is"
108112
"library"
109113
"mapping"
114+
"memory"
110115
"modifier"
111116
"new"
112117
"pragma"
113118
"private"
114119
"public"
115-
"internal"
116120
"pure"
117-
"view"
121+
"require"
118122
"return"
119123
"returns"
124+
"revert"
125+
"storage"
120126
"struct"
121127
"switch"
122128
"this"
129+
"throw"
123130
"using"
124131
"var"
132+
"view"
125133
"while"
126-
"enum"
127-
"throw"
128-
"assert"
129-
"require"
130-
"revert"
131-
"storage"
132-
"memory"
133134
)
134135
"Keywords of the solidity language.")
135136

0 commit comments

Comments
 (0)