()
| 20 | var version = pack.version; |
| 21 | |
| 22 | function getCommentHandler() { |
| 23 | var inMetaBlock = false; |
| 24 | return function (node, comment) { |
| 25 | var value = comment.value.trim(); |
| 26 | if (comment.type === 'comment2' && value.charAt(0) === '!') { |
| 27 | return true; |
| 28 | } |
| 29 | if (value === '==UserScript==') { |
| 30 | inMetaBlock = true; |
| 31 | return true; |
| 32 | } |
| 33 | if (value === '==/UserScript==') { |
| 34 | inMetaBlock = false; |
| 35 | return true; |
| 36 | } |
| 37 | return inMetaBlock; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | gulp.task('icons', function (cb) { |
| 42 | var used = [ |