On Thursday, March 19, 2015 at 2:46:19 PM UTC+13, Yuri Vic wrote:
> In these Bourne shell statements in .sh file:
>
> val=$((some_variable - 1))
>
> val=$(some_function_or_command)
> val=$(${SOME_VAR} arg1 arg2)
>
> enclosing dollar sign and braces highlighted as red, even though this is a
> valid shell syntax.
I wonder what version OS, vim, and syntax script you have.
I had to force the syntax script to highlight for the Bourne shell (by
let is_bash = 1
in my .vimrc to see the lines highlighted incorrectly. Even using the shebang
#!/bin/sh didn't do it; sh.vim notices that /bin/sh resolves to /bin/dash on my
Debian based distro, and sh.vim sets a POSIX flag. Indeed, my distro only has
POSIX shells AFAICT.
Regards, John Little
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.