branch: externals/bicep-ts-mode commit 1aee55a6db5f263325ba4ee1a606346d011331b7 Author: Jostein Kjønigsen <jost...@kjonigsen.net> Commit: Jostein Kjønigsen <jost...@kjonigsen.net>
Make ternary-expressions work too (by not precondition IF for binary expressions) --- bicep-ts-mode.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bicep-ts-mode.el b/bicep-ts-mode.el index 8b57d4a341..f7f89b9efe 100644 --- a/bicep-ts-mode.el +++ b/bicep-ts-mode.el @@ -123,8 +123,7 @@ If found, added to eglot." (object_property (identifier) @font-lock-property-name-face ":" - (identifier) @font-lock-variable-use-face - ) + (identifier) @font-lock-variable-use-face) (object_property (identifier) @font-lock-property-name-face ":" @@ -139,10 +138,8 @@ If found, added to eglot." (if_statement (parenthesized_expression (identifier) @font-lock-variable-use-face)) - (if_statement - (parenthesized_expression - (binary_expression - (identifier) @font-lock-variable-use-face))) + (binary_expression + (identifier) @font-lock-variable-use-face) (array (identifier) @font-lock-variable-use-face))