You are not logged in.
I wonder, has anyone found a "real" bash/zsh/sh/<insert bash compatible shell here> highlighting?
Mine's behaving weird. Absolutely correct stuff like "$(cat file.txt)" ist highlighted as an error, at least the "$(" and ")" parts are white on red background - which is annoying.
Also parameter expansion "${FILE//thumb/full}" - the whole "//thumb/full" part is again white on red background, error - but it's completely legal and correct to do so.
It is really disturbing having all these useless red spots inside my file - it's distracting.
What can I do?
Offline
What is your shebang? If you are using /bin/sh and not /bin/bash, you will get errors for bash syntax as it tests for sh syntax. $(..) is not valid sh syntax.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
Not according to the people over at http://bbs.archlinux.org/viewtopic.php?id=97103. But I'm still willing to be proven right!
Offline
Actually, my shebang reads "#!/bin/zsh"
Putting /bin/bash in there, the highlighting is gone, but how could I make it work with my beloved ZSH?
If I need to hack around it, by god, I will!
Last edited by Sadface (2010-05-16 22:30:07)
Offline
Afaik the red marked $() is not "error" but just sort of "command substitution block", to make you see where it starts and stops.
Dunno, that's just how i interpreted it, could be wrong.
Ogion
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline
The red markers are errors because $() is not bourne-compatible.
[git] | [AURpkgs] | [arch-games]
Offline
Oh alright. (Hm i just saw that vim automatically uses sh-syntax even though a script has the zsh-shebang line; when i manually tell it to use zsh-syntax the red marking disappears..)
Ogion
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline