Skip to content

Commit 14573ea

Browse files
committed
Add defvar for solidity mode symbols to avoid warnings
1 parent 2014fec commit 14573ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

company-solidity.el

+7-1
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,14 @@
9191
(defconst company-solidity-additional-function-methods
9292
'("selector"))
9393

94-
;; Completion targets taken from solidity-mode syntax-highlighting keywords lists, plus additional targets above.
94+
;; defvar symbols taken from solidity-mode.el to avoid reference warnings
95+
(defvar solidity-keywords)
96+
(defvar solidity-constants)
97+
(defvar solidity-variable-modifier)
98+
(defvar solidity-builtin-types)
99+
(defvar solidity-builtin-constructs)
95100

101+
;; Completion targets taken from solidity-mode syntax-highlighting keywords lists, plus additional targets above.
96102
(defconst company-solidity-keywords
97103
(append
98104
solidity-keywords

0 commit comments

Comments
 (0)