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: