File: elmfilt.vim

package info (click to toggle)
vim-rt 5.3-12
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,172 kB
  • ctags: 815
  • sloc: makefile: 857; awk: 778; ansic: 379; perl: 192; sh: 167
file content (34 lines) | stat: -rw-r--r-- 1,170 bytes parent folder | download
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
" Vim syntax file
" Language:	Elm Filter rules
" Maintainer:	Dr. Charles E. Campbell, Jr. <Charles.Campbell@gsfc.nasa.gov>
" Last change:	January 5, 1998

" remove any old syntax stuff hanging around
syn clear

syn keyword	elmfiltAction	delete execute executec forward leave save savecopy
syn match	elmfiltArg	"[^\\]%[&0-9]"lc=1	contained
syn keyword	elmfiltCond	lines always subject sender from to lines received
syn region	elmfiltMatch	start="/" skip="\\/" end="/"
syn match	elmfiltNumber	"\d\+"
syn keyword	elmfiltOper	and not matches
syn match	elmfiltOper	"\~"
syn match	elmfiltOper	"<=\|>=\|!=\|<\|<\|=\|(\|)"
syn keyword	elmfiltRule	if then
syn region	elmfiltString	start='"' skip='"\(\\\\\)*\\"' end='"'	contains=elmfiltArg
syn match	elmfiltComment	"^#.*$"

if !exists("did_elmfilt_syntax_inits")
  let did_elmfilt_syntax_inits= 1
  hi link elmfiltAction	Statement
  hi link elmfiltArg	Special
  hi link elmfiltComment	Comment
  hi link elmfiltCond	Type
  hi link elmfiltMatch	Special
  hi link elmfiltNumber	Number
  hi link elmfiltOper	Operator
  hi link elmfiltRule	Statement
  hi link elmfiltString	String
  endif
let b:current_syntax = "elmfilt"
" vim: ts=9