From dc10f6d53cb670d8a32e28f06fe96917820e55f5 Mon Sep 17 00:00:00 2001 From: Justin Su Date: Sun, 8 Mar 2026 16:31:22 -0400 Subject: [PATCH] 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: