1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
libpsyc/share/vim/syntax/psyc.vim
psyc://loupsycedyglgamf.onion/~lynX 1248989279 simple vim syntax for psyc packets
1984-04-04 00:44:05 +00:00

34 lines
800 B
VimL

" 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"