File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ It must be a function with two arguments: TYPE and NAME.")
65
65
" Return Imenu label for parent node using TYPE and NAME."
66
66
(format " %s ..." (gdscript-ts-imenu-format-item-label type name)))
67
67
68
+ (defun gdscript-ts-imenu-format-parent-item-jump-label (type _name )
69
+ " Return Imenu label for parent node jump using TYPE and NAME."
70
+ (if (string= type " class" )
71
+ " *class definition*"
72
+ " *function definition*" ))
68
73
69
74
; ;; Keywords
70
75
@@ -199,8 +204,8 @@ Similar to `gdscript-imenu-create-index' but use tree-sitter."
199
204
(tree (treesit-induce-sparse-tree
200
205
node
201
206
(rx (or (seq bol
202
- (or " onready " " export " " " )
203
- " _variable_statement "
207
+ (or " onready_ " " export_ " " " )
208
+ " variable_statement "
204
209
eol)
205
210
(seq bol
206
211
(or " function" " class" )
You can’t perform that action at this time.
0 commit comments