]> git.draconx.ca Git - vimconf.git/blob - ftplugin/gob.vim
Add gob2 syntax highlighting rules.
[vimconf.git] / ftplugin / gob.vim
1 " Vim filetype plugin file
2 " Language:     GObject Builder (gob)
3 " Maintainer:   Ding-Yi Chen <dchen at redhat.com>
4 " Modified from cpp.vim
5 " Last Change:  2008 Feb 21
6
7
8 " Only do this when not done yet for this buffer
9 if exists("b:did_ftplugin")
10   finish
11 endif
12
13 " Behaves just like C
14 runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim
15
16 " Let the matchit plugin know what items can be matched.
17
18 runtime! macros/matchit.vim
19 if exists("loaded_matchit")
20     let b:match_ignorecase = 0
21     let b:match_words =
22                 \ '\<public\>:\<protected\>:\<private\>:\<signal\>:\<virtual\>:\<override\>'
23     " Ignore ":syntax region" commands, the 'end' argument clobbers if-endif
24     let b:match_skip = 'getline(".") =~ "^\\s*sy\\%[ntax]\\s\\+region" ||
25                 \ synIDattr(synID(line("."),col("."),1),"name") =~? "comment\\|string"'
26 endif