mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-14 15:46:56 -05:00
fix(tree-sitter): add derived-mode parents to ts-modes
ts-modes do this already in 30/31+ (`derived-mode-add-parents` was added in 30), but is still needed for 29.x users and any ts-modes that haven't adapted (many of them). Fix: doomemacs/community#29
This commit is contained in:
@@ -132,7 +132,8 @@ information.")
|
||||
(let ((pred (car rule))
|
||||
(plist (cdr rule)))
|
||||
(and (or (and (symbolp pred)
|
||||
(eq major-mode pred))
|
||||
(or (eq major-mode pred)
|
||||
(memq pred (get major-mode 'derived-mode-extra-parents))))
|
||||
(and (stringp pred)
|
||||
(stringp buffer-file-name)
|
||||
(string-match-p pred buffer-file-name)))
|
||||
|
Reference in New Issue
Block a user