Bug#796282: vim-runtime: syntax/sh.vim doesn't higlight sole "local var"
Christoph Anton Mitterer
calestyo at scientia.net
Thu Aug 20 23:41:15 UTC 2015
Package: vim-runtime
Version: 2:7.4.826-1
Severity: minor
Hey.
It seems that the syntax highlighting for the Shell Command Language
properly highlights lines like:
local var=value
i.e. "var" is highlightes as variable and value according to its content.
But just a line like:
local var
isn't highlighted.
Further, while "local" isn't a keyword according to POSIX, virtually all
POSIX Shell Command langauge seem to support it (at least bash and dash).
So it may make sense to highlight "local" itself as a keyword.
At least if even "printf" is highlighted as such, while not even POSIX
requires printf to be a built-in command.
Cheers,
Chris.
More information about the pkg-vim-maintainers
mailing list