Created
March 18, 2010 01:14
-
-
Save lewurm/335937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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