mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-04 18:09:55 +03:00
Add customizable variable for type hints
I use it for contextual yas snippets here, to include in a future version of the tool or as a separate package
This commit is contained in:
@@ -23,6 +23,12 @@
|
|||||||
map)
|
map)
|
||||||
"Keymap for `gdscript-mode'.")
|
"Keymap for `gdscript-mode'.")
|
||||||
|
|
||||||
|
(defcustom gdscript-use-type-hints t
|
||||||
|
"If t, inserted snippets contain type hints"
|
||||||
|
:group 'gdscript
|
||||||
|
:type 'boolean)
|
||||||
|
|
||||||
|
|
||||||
;; Lists of keywords in the language
|
;; Lists of keywords in the language
|
||||||
(defvar gdscript-keywords '("if" "elif" "else" "for" "do" "while" "match"
|
(defvar gdscript-keywords '("if" "elif" "else" "for" "do" "while" "match"
|
||||||
"switch" "case" "break" "continue" "pass"
|
"switch" "case" "break" "continue" "pass"
|
||||||
|
|||||||
Reference in New Issue
Block a user