From 92f4cb7ef743b0ad23f74fe78fe169fc24644e7c Mon Sep 17 00:00:00 2001 From: Nikita Bobko <20517828+nikitabobko@users.noreply.github.com> Date: Sun, 5 Apr 2020 21:04:36 +0300 Subject: [PATCH] Clarify regex for `git commit --verbose` (#1606) --- runtime/syntax/git-commit.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/git-commit.yaml b/runtime/syntax/git-commit.yaml index d8c16479..9f8ef0d9 100644 --- a/runtime/syntax/git-commit.yaml +++ b/runtime/syntax/git-commit.yaml @@ -26,7 +26,7 @@ rules: # Diffs (i.e. git commit --verbose) - default: - start: "^diff" + start: "^diff --git" # Diff output puts a space before file contents on each line so this # should never match valid diff output and extend highlighting to the # end of the file