mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
simple vim syntax for psyc packets
This commit is contained in:
parent
a0abf99f72
commit
1248989279
34 changed files with 35 additions and 0 deletions
1
share/vim/ftdetect/psyc.vim
Normal file
1
share/vim/ftdetect/psyc.vim
Normal file
|
@ -0,0 +1 @@
|
|||
au BufRead,BufNewFile *.psyc set filetype=psyc
|
34
share/vim/syntax/psyc.vim
Normal file
34
share/vim/syntax/psyc.vim
Normal file
|
@ -0,0 +1,34 @@
|
|||
" Vim syntax file
|
||||
" Language: PSYC - syntax highlighting for protocol packets
|
||||
" Maintainer: carlo von lynX
|
||||
" Latest Revision: 2016-08-25
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" PSYC2 syntax
|
||||
syn match psycSeparator /^|$/
|
||||
|
||||
" PSYC1 syntax
|
||||
syn match psycSeparator /^\.$/
|
||||
|
||||
" PSYC operators
|
||||
syn match psycSet /^:[a-z_].*$/
|
||||
syn match psycAssign /^=[a-z_].*$/
|
||||
syn match psycAugment /^+[a-z_].*$/
|
||||
" why doesn't this one work?
|
||||
syn match psycDiminsh /^\-[a-z_].*$/
|
||||
|
||||
" should define a region instead, so that header rules
|
||||
" are not applied to body
|
||||
syn match psycMethod /^[a-z_]\+$/
|
||||
|
||||
hi def link psycSeparator PreProc
|
||||
hi def link psycMethod Statement
|
||||
hi def link psycAssign Constant
|
||||
hi def link psycSet Identifier
|
||||
hi def link psycAugment Type
|
||||
hi def link psycDiminish Type
|
||||
|
||||
let b:current_syntax = "psyc"
|
Loading…
Reference in a new issue