Add 'lua-ts-mode' to 'interpreter-mode-alist'
* lisp/progmodes/lua-ts-mode.el: Enable 'lua-ts-mode' for Lua scripts based on their interpreter line. (Bug#74951)
This commit is contained in:
parent
d8ffcf2fba
commit
08b62132dd
1 changed files with 2 additions and 1 deletions
|
@ -853,7 +853,8 @@ Calls REPORT-FN directly."
|
|||
(derived-mode-add-parents 'lua-ts-mode '(lua-mode))
|
||||
|
||||
(when (treesit-ready-p 'lua)
|
||||
(add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode)))
|
||||
(add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode))
|
||||
(add-to-list 'interpreter-mode-alist '("\\<lua\\(?:jit\\)?" . lua-ts-mode)))
|
||||
|
||||
(provide 'lua-ts-mode)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue