From f1a7f0d3922e0a86f6bd34334ebd260f18f906f6 Mon Sep 17 00:00:00 2001 From: Justin Su Date: Thu, 26 Feb 2026 04:26:07 -0500 Subject: [PATCH 1/5] Expand git-config filename pattern to include `*/git/config` --- runtime/syntax/git-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/git-config.yaml b/runtime/syntax/git-config.yaml index a0f21e8d..d2d258ce 100644 --- a/runtime/syntax/git-config.yaml +++ b/runtime/syntax/git-config.yaml @@ -1,7 +1,7 @@ filetype: git-config detect: - filename: "git(config|modules)$|\\.git/config$" + filename: "git(config|modules)$|^(.*[\\/])?\\.?git/config$" rules: - constant: "\\<(true|false)\\>" From 184dd259e90e2ef5dd4e22342595389a7531e5e6 Mon Sep 17 00:00:00 2001 From: Justin Su Date: Thu, 26 Feb 2026 14:27:38 -0500 Subject: [PATCH 2/5] Match backslash too --- runtime/syntax/git-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/git-config.yaml b/runtime/syntax/git-config.yaml index d2d258ce..7556ba92 100644 --- a/runtime/syntax/git-config.yaml +++ b/runtime/syntax/git-config.yaml @@ -1,7 +1,7 @@ filetype: git-config detect: - filename: "git(config|modules)$|^(.*[\\/])?\\.?git/config$" + filename: "git(config|modules)$|^(.*[\\/])?\\.?git[\\/]config$" rules: - constant: "\\<(true|false)\\>" From dc10f6d53cb670d8a32e28f06fe96917820e55f5 Mon Sep 17 00:00:00 2001 From: Justin Su Date: Sun, 8 Mar 2026 16:31:22 -0400 Subject: [PATCH 3/5] Convert filename regexes to single-quoted strings --- runtime/syntax/git-commit.yaml | 2 +- runtime/syntax/git-config.yaml | 2 +- runtime/syntax/git-rebase-todo.yaml | 2 +- runtime/syntax/ruby.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/syntax/git-commit.yaml b/runtime/syntax/git-commit.yaml index 68032e1f..db857912 100644 --- a/runtime/syntax/git-commit.yaml +++ b/runtime/syntax/git-commit.yaml @@ -1,7 +1,7 @@ filetype: git-commit detect: - filename: "^(.*[\\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$" + filename: '^(.*[\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$' rules: # File changes diff --git a/runtime/syntax/git-config.yaml b/runtime/syntax/git-config.yaml index 7556ba92..9c66a75b 100644 --- a/runtime/syntax/git-config.yaml +++ b/runtime/syntax/git-config.yaml @@ -1,7 +1,7 @@ filetype: git-config detect: - filename: "git(config|modules)$|^(.*[\\/])?\\.?git[\\/]config$" + filename: 'git(config|modules)$|^(.*[\/])?\.?git[\/]config$' rules: - constant: "\\<(true|false)\\>" diff --git a/runtime/syntax/git-rebase-todo.yaml b/runtime/syntax/git-rebase-todo.yaml index 724f9c9c..f6e03b3f 100644 --- a/runtime/syntax/git-rebase-todo.yaml +++ b/runtime/syntax/git-rebase-todo.yaml @@ -1,7 +1,7 @@ filetype: git-rebase-todo detect: - filename: "^(.*[\\/])?git\\-rebase\\-todo$" + filename: '^(.*[\/])?git\-rebase\-todo$' rules: # Rebase commands diff --git a/runtime/syntax/ruby.yaml b/runtime/syntax/ruby.yaml index 8915ed74..e042b180 100644 --- a/runtime/syntax/ruby.yaml +++ b/runtime/syntax/ruby.yaml @@ -1,7 +1,7 @@ filetype: ruby detect: - filename: "\\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\\.?[Bb]rewfile)$" + filename: '\.(rb|rake|gemspec)$|^(.*[\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\.?[Bb]rewfile)$' header: "^#!.*/(env +)?ruby( |$)" rules: From ad43a5da99af8df01634ca6f2938eeb1b1d5a51c Mon Sep 17 00:00:00 2001 From: Justin Su Date: Sun, 8 Mar 2026 16:32:24 -0400 Subject: [PATCH 4/5] Replace `[\/]` with `[\\/]` --- runtime/syntax/git-commit.yaml | 2 +- runtime/syntax/git-config.yaml | 2 +- runtime/syntax/git-rebase-todo.yaml | 2 +- runtime/syntax/ruby.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/syntax/git-commit.yaml b/runtime/syntax/git-commit.yaml index db857912..29c7353d 100644 --- a/runtime/syntax/git-commit.yaml +++ b/runtime/syntax/git-commit.yaml @@ -1,7 +1,7 @@ filetype: git-commit detect: - filename: '^(.*[\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$' + filename: '^(.*[\\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$' rules: # File changes diff --git a/runtime/syntax/git-config.yaml b/runtime/syntax/git-config.yaml index 9c66a75b..9a13b389 100644 --- a/runtime/syntax/git-config.yaml +++ b/runtime/syntax/git-config.yaml @@ -1,7 +1,7 @@ filetype: git-config detect: - filename: 'git(config|modules)$|^(.*[\/])?\.?git[\/]config$' + filename: 'git(config|modules)$|^(.*[\\/])?\.?git[\\/]config$' rules: - constant: "\\<(true|false)\\>" diff --git a/runtime/syntax/git-rebase-todo.yaml b/runtime/syntax/git-rebase-todo.yaml index f6e03b3f..07c93b66 100644 --- a/runtime/syntax/git-rebase-todo.yaml +++ b/runtime/syntax/git-rebase-todo.yaml @@ -1,7 +1,7 @@ filetype: git-rebase-todo detect: - filename: '^(.*[\/])?git\-rebase\-todo$' + filename: '^(.*[\\/])?git\-rebase\-todo$' rules: # Rebase commands diff --git a/runtime/syntax/ruby.yaml b/runtime/syntax/ruby.yaml index e042b180..415ab925 100644 --- a/runtime/syntax/ruby.yaml +++ b/runtime/syntax/ruby.yaml @@ -1,7 +1,7 @@ filetype: ruby detect: - filename: '\.(rb|rake|gemspec)$|^(.*[\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\.?[Bb]rewfile)$' + filename: '\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\.?[Bb]rewfile)$' header: "^#!.*/(env +)?ruby( |$)" rules: From 5ddb05b5ec71dcb605d044bf8f56225ba170a5bc Mon Sep 17 00:00:00 2001 From: Justin Su Date: Sun, 8 Mar 2026 20:02:59 -0400 Subject: [PATCH 5/5] Apply suggestion from @Andriamanitra Co-authored-by: Mikko --- runtime/syntax/ruby.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/ruby.yaml b/runtime/syntax/ruby.yaml index 415ab925..dadb4c26 100644 --- a/runtime/syntax/ruby.yaml +++ b/runtime/syntax/ruby.yaml @@ -1,7 +1,7 @@ filetype: ruby detect: - filename: '\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\.?[Bb]rewfile)$' + filename: '\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config\.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\.?[Bb]rewfile)$' header: "^#!.*/(env +)?ruby( |$)" rules: