[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bicep-ts-mode 5350edd6a1 5/5: Add functions to imenu to
From: |
ELPA Syncer |
Subject: |
[elpa] externals/bicep-ts-mode 5350edd6a1 5/5: Add functions to imenu too |
Date: |
Sun, 18 Feb 2024 09:57:24 -0500 (EST) |
branch: externals/bicep-ts-mode
commit 5350edd6a1bd05292a26e7a3b291de8cbaf6bc05
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Add functions to imenu too
---
bicep-ts-mode.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/bicep-ts-mode.el b/bicep-ts-mode.el
index 92251818e0..f412640818 100644
--- a/bicep-ts-mode.el
+++ b/bicep-ts-mode.el
@@ -102,6 +102,8 @@
(identifier) @font-lock-variable-name-face)
(for_statement
(identifier) @font-lock-variable-name-face)
+ (output_declaration
+ (identifier) @font-lock-variable-name-face)
)
:language 'bicep
@@ -153,7 +155,8 @@ Return nil if there is no name or if NODE is not a defun
node."
;; Navigation.
(setq-local treesit-defun-type-regexp
(rx (or "module_declaration" "type_declaration"
"variable_declaration"
- "parameter_declaration" "resource_declaration"
"output_declaration")))
+ "parameter_declaration" "resource_declaration"
"output_declaration"
+ "function_declaration")))
(setq-local treesit-defun-name-function #'bicep-ts-mode--defun-name)
;; Font-lock.
@@ -167,9 +170,10 @@ Return nil if there is no name or if NODE is not a defun
node."
;; Imenu.
(setq-local treesit-simple-imenu-settings
'(("Modules" "\\`module_declaration\\'" nil nil)
+ ("Functions" "\\`user_defined_function\\'" nil nil)
("Types" "\\`type_declaration\\'" nil nil)
- ("Variables" "\\`variable_declaration\\'" nil nil)
("Parameters" "\\`parameter_declaration\\'" nil nil)
+ ("Variables" "\\`variable_declaration\\'" nil nil)
("Resources" "\\`resource_declaration\\'" nil nil)
("Outputs" "\\`output_declaration\\'" nil nil)))
- [elpa] externals/bicep-ts-mode updated (c70e067362 -> 5350edd6a1), ELPA Syncer, 2024/02/18
- [elpa] externals/bicep-ts-mode 5350edd6a1 5/5: Add functions to imenu too,
ELPA Syncer <=
- [elpa] externals/bicep-ts-mode c293a373c3 1/5: Add support for user-defined functions., ELPA Syncer, 2024/02/18
- [elpa] externals/bicep-ts-mode e5bf435adb 3/5: Add ELPA ignore files, as suggested by Stefan Monnier, ELPA Syncer, 2024/02/18
- [elpa] externals/bicep-ts-mode 077ead63a3 4/5: Bump version, create new release., ELPA Syncer, 2024/02/18
- [elpa] externals/bicep-ts-mode 48c2106b71 2/5: Highlight identifiers in most kind of declarative expressions., ELPA Syncer, 2024/02/18