File: po.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 (27 lines) | stat: -rw-r--r-- 755 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
" Vim syntax file
" Language   : po (GNU gettext)
" Maintainer : Sung-Hyun Nam <namsh@lgic.co.kr>
" Last change: 1998/05/27

" remove any old syntax stuff hanging around
syn clear

syn match poComment	"^#.*$"
syn match poSources	"^#:.*$"
syn match poStatement	"^\(msgid\|msgstr\)"
syn match poSpecial	contained "\\[0-7][0-7][0-7]\=\|\\."
syn region poString	start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=poSpecial

if !exists("did_po_syntax_inits")
  let did_po_syntax_inits = 1
  " The default methods for highlighting.  Can be overridden later.
  hi link poComment	Comment
  hi link poSources	PreProc
  hi link poStatement	Statement
  hi link poSpecial	Special
  hi link poString	String
endif

let b:current_syntax = "po"

" vim:set ts=8 sts=8 sw=8 noet: