* Eric Pruitt <eric.pruitt@gmail.com> [2016-04-28 22:34]:
> I'm very familiar with the differences in POSIX shell syntax and
> Bash-specific constructs, and I already explicitly use "#!/usr/bin/env
> bash" for all Bash scripts and "#!/bin/sh" for things I want to be
> portable. Changing the symlink on my Debian box does fix the "function"
> keyword highlighting. It seems strange to me that symlink resolution
> takes precedence over the shebang line.
You are right. Seems like a bug in Vim syntax file.
If /bin/sh points to dash it sets g:is_posix variable. Then if this
variable exists it does not add highlighting for function keyword even
if bash script was recognized (line 402 in my copy of syntax/sh.vim).
As a workaround you can set g:is_bash in your Vim configuration.
--
Dmitri Vereshchagin
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thursday, April 28, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment