File: gaby.vim

package info (click to toggle)
gaby 2.0.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,148 kB
  • ctags: 3,101
  • sloc: ansic: 48,660; sh: 8,710; python: 1,161; makefile: 951; perl: 265; sed: 93; xml: 89; sql: 25
file content (36 lines) | stat: -rw-r--r-- 1,002 bytes parent folder | download | duplicates (4)
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
33
34
35
36
" Vim syntax file
" Language:	Gaby description file
" Maintainer:	Frederic Peters <fpeters@swing.be>
" Last change:	1999 May 29

" this is beta 'cause I have other things to do than learning how to write
" cool Vim syntax files :)

" to use this script simply put :
" 	au BufNewFile,BufRead desc.*    source <path to>/gaby.vim
" in your ~/.vimrc

" Remove any old syntax stuff hanging around
syn clear

syn match	gabySection	"^Begin.*"
syn match	gabySection	"^End.*"
syn keyword	gabyFieldtype	string strings date integer real multimedia decimal

syn match	gabyFieldName	"^\t\t[A-Za-z(].*:"
syn match	gabyI18n	"^\t*.i18n_.."
syn match	gabyComment	"^#.*$"

if !exists("did_gabydesc_syntax_inits")
  let did_gabydesc_syntax_inits = 1
  " The default methods for highlighting.  Can be overridden later
  hi link gabySection		Special
  hi link gabyI18n		PreProc
  hi link gabyFieldtype		Type
  hi link gabyFieldName		Constant
  hi link gabyComment		Comment
endif

let b:current_syntax = "gaby"

" vim: ts=8