Skip to content

Commit

Permalink
Add treesit-language-source-alist for grammar installation
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Jan 28, 2024
1 parent b2bcfe2 commit 9953fb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions php-ts-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -324,5 +324,9 @@ Currently there are `php-mode' and `php-ts-mode'."
(when (treesit-ready-p 'php)
(add-to-list 'auto-mode-alist '("\\.php[s345]?\\'" . php-ts-mode)))

;;;###autoload
(add-to-list 'treesit-language-source-alist
'(php "https://github.com/tree-sitter/tree-sitter-php" "master" "php/src"))

(provide 'php-ts-mode)
;;; php-ts-mode.el ends here

0 comments on commit 9953fb7

Please sign in to comment.