Changeset 2142 for trunk/tools/vimlol/vimlol.vim
- Timestamp:
- Dec 15, 2012, 10:15:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/vimlol/vimlol.vim
r2135 r2142 42 42 43 43 """ 44 """ For now, pretend .lolfx is C++44 """ LolFx language handler 45 45 """ 46 au BufRead,BufNewFile *.lolfx let b:current_syntax = "cpp"47 46 47 " For now, pretend .lolfx is C++ 48 au BufRead,BufNewFile *.lolfx set syntax=cpp 49 50 " New sampler types (GLSL) 51 au BufRead,BufNewFile *.lolfx syn match cType 52 \ "\<sampler\(\([12]D\|Cube\)\(Array\|\)\(Shadow\|\)\)\>" 53 \ "\<sampler\(3D\|2DRect\|Buffer\|2DMS\|2DMSArray\|2DRectShadow\)\>" 54 55 " Type constructs (LolFx) 56 au BufRead,BufNewFile *.lolfx syn keyword cppStructure 57 \ technique pass precision 58 59 " Variable attributes (GLSL and some HLSL) 60 au BufRead,BufNewFile *.lolfx syn keyword cType 61 \ in out uniform attribute varying 62 63 " Texture operators (GLSL and HLSL) 64 au BufRead,BufNewFile *.lolfx syn keyword cppOperator 65 \ texture1D texture2D texture3D tex2D tex3D 66 67 " Handle #version constructs 68 au BufRead,BufNewFile *.lolfx syn region cPreProc start="^\s*\(%:\|#\)\s*version\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell 69
Note: See TracChangeset
for help on using the changeset viewer.