From: Juri Linkov Date: Thu, 13 Mar 2025 18:25:29 +0000 (+0200) Subject: * lisp/textmodes/css-mode.el (css-ts-mode--outline-predicate): Improve. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee7de2df422bc1f462199278faa6ea2cee1e255f;p=emacs.git * lisp/textmodes/css-mode.el (css-ts-mode--outline-predicate): Improve. Set separate value that differs from 'css--treesit-simple-imenu-settings' by adding new node "at_rule". (cherry picked from commit abeeb6eb748652b48124fa34db718f7c749b4d8b) --- diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 9960211ac64..17da056f41e 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -1824,7 +1824,13 @@ rgb()/rgba()." "Settings for `treesit-simple-imenu'.") (defvar css-ts-mode--outline-predicate - (nth 1 (car css--treesit-simple-imenu-settings)) + (rx bos (or "rule_set" + "media_statement" + "keyframes_statement" + "keyframe_block" + "supports_statement" + "at_rule") + eos) "Predicate for `treesit-outline-predicate'.") (defvar css--treesit-defun-type-regexp