3 " Language: Git commit messages
4 " Maintainer: Simon Ruderich <simon@ruderich.org>
7 " Copyright (C) 2012 Simon Ruderich
9 " This file is free software: you can redistribute it and/or modify
10 " it under the terms of the GNU General Public License as published by
11 " the Free Software Foundation, either version 3 of the License, or
12 " (at your option) any later version.
14 " This file is distributed in the hope that it will be useful,
15 " but WITHOUT ANY WARRANTY; without even the implied warranty of
16 " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 " GNU General Public License for more details.
19 " You should have received a copy of the GNU General Public License
20 " along with this file. If not, see <http://www.gnu.org/licenses/>.
23 " Don't fold diffs in Git commit messages. I want to fold the list of
24 " committed files, but take a closer look at the diffs.
25 syn region gitcommitDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^\%(diff --\|$\|#\)\@=/ contains=@gitcommitDiff