I am using VIM 7.3 and my awk.vim file starts with:
" Vim syntax file
" Language: awk, nawk, gawk, mawk
" Maintainer: Antonio Colombo <
azc...@gmail.com>
" Last Change: 2012 May 18
The following program:
#!/bin/gawk -f
function Days(x) {
return 28 + (x + int(x/8)) % 2 + 2 % x + 2 * int(1/x)
}
# Rest of program here
when viewed in VIM, shows an error (i.e., it highlights in red) on the
closing brace shown above and on the rest of the closing braces in the
file. I know this is the offending function because if I remove this
function, then the syntax highlighting cleans up and behaves normally.
The above is syntactically correct and works fine when the program is run.
So, it boils down to:
1) Is there a kludge/workaround to make the syntax highlighting work?
2) Is there a way to get the awk.vim file fixed?
--
BigBusiness types (aka,
Republicans/Conservatives/Independents/Liberatarians/whatevers)
don't hate big government. They *love* big government as a means for
them to get rich, sucking off the public teat. What they don't like is
*democracy* - little people actually having the right to vote and stuff
like that.