File: xdefaults.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 (26 lines) | stat: -rw-r--r-- 740 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
" Vim syntax file 
" Language:     X resources files like ~/.Xdefaults
" Maintainer:   Gautam H. Mudunuri <gmudunur@informatica.com>
" Last change:  1998/5/21 (really!)

" clear any unwanted syntax defs
syn clear

" shut case off
syn case ignore

syn match  xdefaultsLabel           /^.\{-}:/he=e-1
syn match  xdefaultsValue           /:.*$/lc=1
syn match  xdefaultsCommentedLine   "!.*$"

if !exists("did_xdefaults_syntax_inits")
        let did_xdefaults_syntax_inits = 1
        " The default methods for highlighting.  Can be overridden later
        hi link xdefaultsLabel         Type
        hi link xdefaultsValue         Constant
        hi link xdefaultsCommentedLine Comment
endif

let b:current_syntax = "xdefaults"

" vim:ts=8