From ee7de2df422bc1f462199278faa6ea2cee1e255f Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Thu, 13 Mar 2025 20:25:29 +0200 Subject: [PATCH] * 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) --- lisp/textmodes/css-mode.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5