d47219fbce7851caf6c38b8e2e2e8590adb79c8d
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #4397 from vidakovic/master
Accept single and double quotes in Gulp plugin
Diff
1diff --git a/plugins/gulp/gulp.plugin.zsh b/plugins/gulp/gulp.plugin.zsh
2index 6017c7b6023a5e5e9987e54af0d1c3fc278725b2..8e11a444f9c2bc658719af2d8d92398ad2703412 100644
3--- a/plugins/gulp/gulp.plugin.zsh
4+++ b/plugins/gulp/gulp.plugin.zsh
5@@ -20,10 +20,10 @@
6 # in the current directory.
7 #
8 function $$gulp_completion() {
9- compls=$(grep -Eo "gulp.task\(('(([a-zA-Z0-9]|-)*)',)" gulpfile.js 2>/dev/null | grep -Eo "'(([a-zA-Z0-9]|-)*)'" | sed s/"'"//g | sort)
10+ compls=$(grep -Eo "gulp.task\((['\"](([a-zA-Z0-9]|-)*)['\"],)" gulpfile.js 2>/dev/null | grep -Eo "['\"](([a-zA-Z0-9]|-)*)['\"]" | sed s/"['\"]"//g | sort)"
11
12 completions=(${=compls})
13 compadd -- $completions
14 }
15
16-compdef $$gulp_completion gulp
17+compdef $$gulp_completion gulp