From e7f87c24e3b340860add14d05d71b71753928cb0 Mon Sep 17 00:00:00 2001 From: trivernis Date: Fri, 5 Jul 2024 20:49:47 +0200 Subject: [PATCH] Add subsitution to bracket highlights in bash --- content/config/helix/languages.toml | 5 ++--- content/config/helix/runtime/queries/bash/highlights.scm | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/content/config/helix/languages.toml b/content/config/helix/languages.toml index 1f4d111..3bc4480 100644 --- a/content/config/helix/languages.toml +++ b/content/config/helix/languages.toml @@ -169,10 +169,9 @@ roots = [] grammar = "jora" -[[grammar]] -name = "jora" +# [[grammar]] +# name = "jora" # source = { git = "git@gitlab.unitb.com:jri/tree-sitter-jora.git", rev = "3c65fd8a368818a2300ac4dee8f4801db9dd28e1" } -source = { path = "/home/jri/Dokumente/Programming/sonstiges/tree-sitter-jora"} [[language]] diff --git a/content/config/helix/runtime/queries/bash/highlights.scm b/content/config/helix/runtime/queries/bash/highlights.scm index bf0cb56..b5ea2de 100644 --- a/content/config/helix/runtime/queries/bash/highlights.scm +++ b/content/config/helix/runtime/queries/bash/highlights.scm @@ -64,6 +64,12 @@ (expansion_flags) ] @operator + +[ + "{" + "}" + "${" +] @punctuation.bracket ( (command (_) @constant) (#match? @constant "^-")