*autoload: `create' now sets up also the diff regex for Markdown files

This commit is contained in:
Sebastian Gniazdowski 2020-02-25 12:39:53 +01:00
parent 92f0a3df32
commit ed41ae76b6
2 changed files with 4 additions and 0 deletions

1
.gitattributes vendored
View file

@ -1 +1,2 @@
*.zsh diff=zsh
*.md diff=markdown

View file

@ -2879,9 +2879,12 @@ EOF
[diff "zsh"]
xfuncname = "^((function[[:blank:]]+[^[:blank:]]+[[:blank:]]*(\\\\(\\\\)|))|([^[:blank:]]+[[:blank:]]*\\\\(\\\\)))[[:blank:]]*(\\\\{|)[[:blank:]]*$"
[diff "markdown"]
xfuncname = "^#+[[:blank:]].*$"
EOF
print -r -- "*.zsh diff=zsh" >! .gitattributes
print -r -- "*.md diff=markdown" >! .gitattributes
print -r -- "# $plugin" >! "README.md"
command cp -vf "${ZINIT[BIN_DIR]}/LICENSE" LICENSE
command cp -vf "${ZINIT[BIN_DIR]}/doc/Zsh.gitignore" .gitignore