We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8ab04 commit fd012eeCopy full SHA for fd012ee
php-ts-mode.el
@@ -331,6 +331,16 @@ Currently there are `php-mode' and `php-ts-mode'."
331
332
(setq-local treesit-defun-name-function #'php-ts-mode--defun-name)
333
334
+ ;; Navigation
335
+ (setq-local treesit-defun-type-regexp
336
+ (regexp-opt '("class_declaration"
337
+ "enum_declaration"
338
+ "function_definition"
339
+ "interface_declaration"
340
+ "method_declaration"
341
+ "namespace_definition"
342
+ "trait_declaration")))
343
+
344
;; Font-lock.
345
(setq-local treesit-font-lock-settings php-ts-mode--font-lock-settings)
346
(setq-local treesit-font-lock-feature-list
0 commit comments