File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545(defvar-local gdscript-completion--all-keywords
4646 (eval-when-compile (append gdscript-keywords gdscript-built-in-classes
4747 gdscript-built-in-constants gdscript-built-in-functions
48- gdscript-built-in-types)))
48+ gdscript-built-in-types gdscript-annotations )))
4949
5050(defun gdscript-completion-at-point ()
5151 " This is the function to be used for the hook `completion-at-point-functions' ."
Original file line number Diff line number Diff line change 2828
2929; ;; Code:
3030
31+ (defconst gdscript-annotations
32+ '(" @abstract"
33+ " @export" " @export_category" " @export_color_no_alpha" " @export_custom"
34+ " @export_dir" " @export_enum" " @export_exp_easing"
35+ " @export_file" " @export_file_path"
36+ " @export_flags"
37+ " @export_flags_2d_navigation" " @export_flags_2d_physics" " @export_flags_2d_render"
38+ " @export_flags_3d_navigation" " @export_flags_3d_physics" " @export_flags_3d_render"
39+ " @export_flags_avoidance"
40+ " @export_global_dir" " @export_global_file" " @export_group" " @export_multiline"
41+ " @export_node_path" " @export_placeholder"
42+ " @export_range" " @export_storage" " @export_subgroup" " @export_tool_button"
43+ " @icon"
44+ " @onready"
45+ " @rpc"
46+ " @static_unload"
47+ " @tool"
48+ " @warning_ignore" " @warning_ignore_restore" " @warning_ignore_start" ))
49+
3150(defconst gdscript-keywords
3251 '(" and" " as" " assert" " await"
3352 " break" " breakpoint"
3453 " case" " class" " class_name" " const" " continue"
3554 " do"
3655 " elif" " else" " enum"
37- " export" " export_category" " export_color_no_alpha" " export_custom"
38- " export_dir" " export_enum" " export_exp_easing" " export_file"
39- " export_flags"
40- " export_flags_2d_navigation" " export_flags_2d_physics" " export_flags_2d_render"
41- " export_flags_3d_navigation" " export_flags_3d_physics" " export_flags_3d_render"
42- " export_global_dir" " export_global_file" " export_group" " export_multiline"
43- " export_node_path" " export_range" " export_storage" " export_subgroup" " export_tool_button"
4456 " extends"
4557 " false" " for" " func"
4658 " if" " in" " is"
4759 " master" " match"
4860 " not"
49- " onready " " or"
61+ " or"
5062 " pass" " preload" " puppet"
5163 " remote" " remotesync" " return"
5264 " self" " setget" " signal" " super" " slave" " static" " switch" " sync"
53- " tool " " true"
65+ " true"
5466 " var"
5567 " while"
5668 " yield" ))
Original file line number Diff line number Diff line change 7171 (1+ space)
7272 (group (1+ (or word ?_ ))))
7373 (1 font-lock-function-name-face ))
74+ (,(regexp-opt gdscript-annotations 'non-nil )
75+ 1
76+ font-lock-preprocessor-face )
7477 (,(rx symbol-start
7578 (or " var" " const" )
7679 (1+ space)
You can’t perform that action at this time.
0 commit comments