trapd00r / zsh-syntax-highlighting-filetypes

zsh syntax highlighting with dircolors in realtime
155 stars 17 forks source link

Fixed case pattern matching for filetype highlighting. #2

Closed valeriangalliat closed 10 years ago

valeriangalliat commented 10 years ago

The $key as case matching at line 271 is not working for me on zsh 5.0.5.

The variable looking like *.ext is taken literally by the interpreter and not matching any file (resulting in no filetype highlighting).

This can be solved replacing the case with *.$key[3,-1] (looks quite hacky I recognise).

trapd00r commented 10 years ago

Sorry for late reply; cheers, merging.