瀏覽代碼

lolwut

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
23c492a240
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      tools/vimlol/vimlol.vim

+ 6
- 1
tools/vimlol/vimlol.vim 查看文件

@@ -65,5 +65,10 @@ au BufRead,BufNewFile *.lolfx syn keyword cppOperator
\ texture1D texture2D texture3D tex2D tex3D

" Handle #version constructs
au BufRead,BufNewFile *.lolfx syn region cPreProc start="^\s*\(%:\|#\)\s*version\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
au BufRead,BufNewFile *.lolfx syn region cPreProc
\ start="^\s*\(%:\|#\)\s*version\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell

" LolFx shader region
au BufRead,BufNewFile *.lolfx syn region cSpecial
\ start="^\s*\[[^]]*\(glsl\|hlsl\)]" end="$" removeend


Loading…
取消
儲存