File: indexgen.vim

package info (click to toggle)
domesday 0.2cvs20030101-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,344 kB
  • ctags: 1,020
  • sloc: java: 6,454; makefile: 371; modula3: 208; xml: 187; perl: 149; sh: 6
file content (32 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"
" $Id: indexgen.vim,v 1.2 2002/09/08 19:22:56 howama Exp $
" Ben Secrest <blsecres@users.sourceforge.net>
"	simple vim script for syntax highlighting IndexGenerator project files
"
"	to enable:
"	- place this file in ${HOME}/.vim/syntax
"	- add an entry for the IndexGenerator file type to
"	  ${HOME}/.vim/filetype.vim :
"		au BufRead,BufNewFile *.ig		setfiletype indexgen
"

syntax match igLongVarStart ")$" contained
syntax match igLongVarEnd "^;;" contained


syntax include @igHTML $VIMRUNTIME/syntax/html.vim

syntax region	igShortVar oneline start="^" end="="me=e-1
syntax region	igLongVar oneline start="^" end=")$"me=e-1 contains=igLongVarStart
syntax match	igComment	"%.*$" contains=NONE

syntax region igInsertText start=")$" end="^;;$" keepend contains=@igHTML,igComment,igLongVarStart,igLongVarEnd

syn match   IGSection   "^%%%.*"
highlight def link igComment		Comment
highlight def link igShortVar		Keyword
highlight def link igLongVar		Keyword
highlight def link igLongVarStart	Delimiter
highlight def link igLongVarEnd		Delimiter
highlight def link igError		Error
hi def link IGSection   PreProc