pike.vim : New and improved Pike syntax colouring
| script karma
Downloaded by 73
Comments, bugs, improvements
script versions (upload new version)
|Stephen R. van den Berg|
|This Pike syntax colouring definition supersedes any older ones.
It contains support for embedded SQL and embedded Autodoc.
This version started with the C syntax file, fixes several bugs in that file, speeds it up, and adds Pike syntax recognition (including parens for arrays, multisets and mappings), including mismatched paren highlights for all of the above.
It also supports cycling through preprocessor if/else/elif/endif chains.
It's up-to-date for Pike 8.1
|It needs autodoc.vim (vimscript #5641) too (or comment out the include).
It's probably simplest to just put this file in your ~/.vim dir, which (by default) is at the top of your runtimepath.
The file references sqloracle.vim (vimscript #2371) and the matchit (vimscript #39) package; both should be available and included already in standard Vim 8.0+ installs.
On my system I install both pike.vim and autodoc.vim in /usr/share/vim/vim80/syntax.
If you don't have sqloracle.vim or matchit, simply comment out the two corresponding lines in pike.vim referencing those (if you do, you lose embedded SQL highlighting and if/then/else/elif/endif cycling; the rest will work fine).
To edit Cmod files, you can use cmod.vim (vimscript #5645).
Click on the package to download.
ip used for rating: