branch: externals/bicep-ts-mode commit ef4ff704d0dc3191270cda6bc189a4b63391d1ed Author: Jostein Kjønigsen <jost...@kjonigsen.net> Commit: Jostein Kjønigsen <jost...@kjonigsen.net>
Support variable-fontification inside indexing-statements too. --- bicep-ts-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bicep-ts-mode.el b/bicep-ts-mode.el index 5cbcddb14f..b07ddb2ac5 100644 --- a/bicep-ts-mode.el +++ b/bicep-ts-mode.el @@ -155,7 +155,10 @@ Changes may require an Emacs-restart to take effect." (binary_expression (identifier) @font-lock-variable-use-face) (array - (identifier) @font-lock-variable-use-face)) + (identifier) @font-lock-variable-use-face) + (subscript_expression + object: (identifier) @font-lock-variable-use-face + index: (identifier) @font-lock-variable-use-face)) :language 'bicep :feature 'number