mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Merge from origin/emacs-30
9b3eb06c76Indent jsx_text properly with modern grammars1c87be8ac9; * lisp/gnus/gnus.el (gnus-summary-line-format): Reindent.
This commit is contained in:
commit
43fac918bf
3 changed files with 60 additions and 60 deletions
|
|
@ -3449,7 +3449,7 @@ Check if a node type is available, then return the right indent rules."
|
|||
((parent-is "jsx_fragment") parent js-indent-level)))
|
||||
(error
|
||||
`(((match "<" "jsx_text") parent 0)
|
||||
((parent-is "jsx_text") parent js-indent-level)))))
|
||||
((parent-is "jsx_text") parent-bol js-indent-level)))))
|
||||
|
||||
(defun js--treesit-switch-body-helper (_node parent _bol &rest _args)
|
||||
"Anchor helper for the switch body..
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ Check if a node type is available, then return the right indent rules."
|
|||
((parent-is "jsx_fragment") parent typescript-ts-mode-indent-offset)))
|
||||
(treesit-query-error
|
||||
`(((match "<" "jsx_text") parent 0)
|
||||
((parent-is "jsx_text") parent typescript-ts-mode-indent-offset)))))
|
||||
((parent-is "jsx_text") parent-bol typescript-ts-mode-indent-offset)))))
|
||||
|
||||
(defun typescript-ts-mode--anchor-decl (_n parent &rest _)
|
||||
"Return the position after the declaration keyword before PARENT.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue