diff --git a/runtime/syntax/git-commit.yaml b/runtime/syntax/git-commit.yaml index 68032e1f0c..29c7353dea 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 a0f21e8d4d..9a13b389aa 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 724f9c9cb8..07c93b66f1 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 8915ed7470..dadb4c26aa 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: