]> git.draconx.ca Git - vimconf.git/blob - ftplugin/glsl.vim
Add editing rules for awk.
[vimconf.git] / ftplugin / glsl.vim
1 " TODO: #version appears exactly once in the file, before any non-whitespace
2 " (i.e. possibly after a length comment).  Checking only the first 10 lines
3 " is an incorrect hack.
4 for item in getline(1,10)
5         if item =~ "#version 400"
6                 execute ':set syntax=glsl400'
7                 break
8         endif
9         if item =~ "#version 330"
10                 execute ':set syntax=glsl330'
11                 break
12         endif
13 endfor