This commit is contained in:
bauer
2017-12-06 22:52:59 +01:00
parent 874c0e6a17
commit 938bdf3958
16 changed files with 51 additions and 0 deletions

BIN
.vim/syntax/.pdb.vim.swo Normal file

Binary file not shown.

BIN
.vim/syntax/.pdb.vim.swp Normal file

Binary file not shown.

35
.vim/syntax/pdb.vim Normal file
View File

@@ -0,0 +1,35 @@
if exists("b:current_syntax")
finish
endif
syn match pdbComment "TITLE.*"
syn match pdbComment "REMARK.*"
syn match pdbCryst "CRYST1.*"
syn keyword pdbKeyAtom ATOM nextgroup=pdbAtomId
syn keyword pdbTer TER
syn match pdbAtomId "\s*\d\{1,5}" nextgroup=pdbAtomName contained
syn match pdbAtomName "\s*.\{1,4}" nextgroup=pdbResName contained
syn match pdbResName "\s*.\{1,3}" nextgroup=pdbChainId contained
syn match pdbChainId "\s*[a-zA-Z]\{0,1}" nextgroup=pdbResId contained
syn match pdbResId "\s*\d\{1,4}" nextgroup=pdbCoords contained
syn match pdbCoords "\s*\([0-9-]\|\s\|\.\)\{1,24}" nextgroup=pdbBFac contained
syn match pdbBFac "\s*\([0-9-]\|\.\)\{1,6}" nextgroup=pdbTemp contained
syn match pdbTemp "\s*\([0-9-]\|\.\)\{1,6}" nextgroup=pdbElement contained
syn match pdbElement "\s*.\{1,4}" contained
"hi def link pdbComment Comment
hi def link pdbCryst Constant
hi def link pdbTer Keyword
" hi def link pdbKeyAtom Comment
hi def link pdbAtomId Constant
hi def link pdbAtomName Special
hi def link pdbResName Special
hi def link pdbChainId Keyword
hi def link pdbResId Constant
hi def link pdbCoords Type
hi def link pdbBFac Type
hi def link pdbTemp Type
hi def link pdbElement Constant