Skip to content

Commit 42d0ddf

Browse files
authored
Merge pull request #4025 from injust/patch-1
Fix unescaped backslashes and expand git-config filename pattern to include `*/git/config`
2 parents 518a274 + 5ddb05b commit 42d0ddf

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

runtime/syntax/git-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: git-commit
22

33
detect:
4-
filename: "^(.*[\\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$"
4+
filename: '^(.*[\\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$'
55

66
rules:
77
# File changes

runtime/syntax/git-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: git-config
22

33
detect:
4-
filename: "git(config|modules)$|\\.git/config$"
4+
filename: 'git(config|modules)$|^(.*[\\/])?\.?git[\\/]config$'
55

66
rules:
77
- constant: "\\<(true|false)\\>"

runtime/syntax/git-rebase-todo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: git-rebase-todo
22

33
detect:
4-
filename: "^(.*[\\/])?git\\-rebase\\-todo$"
4+
filename: '^(.*[\\/])?git\-rebase\-todo$'
55

66
rules:
77
# Rebase commands

runtime/syntax/ruby.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: ruby
22

33
detect:
4-
filename: "\\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\\.?[Bb]rewfile)$"
4+
filename: '\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config\.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\.?[Bb]rewfile)$'
55
header: "^#!.*/(env +)?ruby( |$)"
66

77
rules:

0 commit comments

Comments
 (0)