Browse Source

driver: Declare global variables

This caused warnings with `setopt warn_create_global`.
pull/364/head
Alyssa Ross 8 years ago
committed by Daniel Shahaf
parent
commit
da60234fb2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      zsh-syntax-highlighting.zsh

+ 2
- 2
zsh-syntax-highlighting.zsh View File

@ -32,8 +32,8 @@
0=${(%):-%N} 0=${(%):-%N}
if true; then if true; then
# $0 is reliable # $0 is reliable
ZSH_HIGHLIGHT_VERSION=$(<"${0:A:h}"/.version)
ZSH_HIGHLIGHT_REVISION=$(<"${0:A:h}"/.revision-hash)
typeset -g ZSH_HIGHLIGHT_VERSION=$(<"${0:A:h}"/.version)
typeset -g ZSH_HIGHLIGHT_REVISION=$(<"${0:A:h}"/.revision-hash)
if [[ $ZSH_HIGHLIGHT_REVISION == \$Format:* ]]; then if [[ $ZSH_HIGHLIGHT_REVISION == \$Format:* ]]; then
# When running from a source tree without 'make install', $ZSH_HIGHLIGHT_REVISION # When running from a source tree without 'make install', $ZSH_HIGHLIGHT_REVISION
# would be set to '$Format:%H$' literally. That's an invalid value, and obtaining # would be set to '$Format:%H$' literally. That's an invalid value, and obtaining

Loading…
Cancel
Save