Skip to content

Instantly share code, notes, and snippets.

@lewurm
Created March 18, 2010 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewurm/335937 to your computer and use it in GitHub Desktop.
Save lewurm/335937 to your computer and use it in GitHub Desktop.
" diese datei nach ~/.vim/syntax/ub10.vim kopieren und
" folgendes in die ~/.vimrc schmeissen:
" > syntax on
" > filetype on
" > augroup filetypedetect
" > au BufNewFile,BufRead *.0 setf ub10
" > au BufNewFile,BufRead *.1 setf ub10
" > au BufNewFile,BufRead *.2 setf ub10
" > au BufNewFile,BufRead *.3 setf ub10
" > augroup END
"
" have fun :)
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case match
syn sync lines=250
syn keyword Statement struct end method var return
syn keyword Statement while do end if then else this
syn match Normal ";"
syn match Normal "("
syn match Normal ")"
syn match Normal "."
syn match Normal "-"
syn match Normal "*"
syn match Special "<"
syn match Special "="
syn match Special ":="
syn match Special ","
syn match Special "or"
syn match Special "not"
"http://vimdoc.sourceforge.net/htmldoc/pattern.html#pattern
syn match Identifier "[a-zA-Z_][0-9a-zA-Z_]\*"
syn match Number "[0-9]\+"
syn match Number "0x[0-9A-Fa-f]\+"
syn region Comment start="/\*" end="\*/"
let b:current_syntax = "ub10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment