Initial commit
This commit is contained in:
commit
662fe0334c
37 changed files with 1614 additions and 0 deletions
23
vim/syntax/brainfuck.vim
Normal file
23
vim/syntax/brainfuck.vim
Normal file
|
@ -0,0 +1,23 @@
|
|||
" brainfuck.vim
|
||||
" Author: Eryn Wells <eryn@3b518c.com>
|
||||
" Last Modified: 2010-11-09
|
||||
|
||||
syn match IncrementPtr '>'
|
||||
syn match DecrementPtr '<'
|
||||
syn match IncrementVal '+'
|
||||
syn match DecrementVal '-'
|
||||
syn match OutputVal '\.'
|
||||
syn match InputVal ','
|
||||
syn match LoopStart '\['
|
||||
syn match LoopEnd ']'
|
||||
syn match Comment '[^><+\-.,[\]]*' contains=ALL
|
||||
|
||||
hi IncrementPtr ctermfg=blue
|
||||
hi DecrementPtr ctermfg=blue
|
||||
hi IncrementVal ctermfg=green
|
||||
hi DecrementVal ctermfg=green
|
||||
hi OutputVal ctermfg=magenta
|
||||
hi InputVal ctermfg=magenta
|
||||
hi LoopStart ctermfg=cyan
|
||||
hi LoopEnd ctermfg=cyan
|
||||
hi Comment ctermfg=grey
|
28
vim/syntax/ledger.vim
Normal file
28
vim/syntax/ledger.vim
Normal file
|
@ -0,0 +1,28 @@
|
|||
syn case ignore
|
||||
|
||||
syn keyword bangDirective include account end transparent contained containedin=ledgerDirective
|
||||
|
||||
syn keyword periodRecurring daily weekly biweekly monthly bimonthly quarterly yearly contained containedin=ledgerPeriodEntry
|
||||
syn keyword periodSingle day week month quarter year contained containedin=periodEvery
|
||||
syn keyword periodPlural days weeks months quarters years contained containedin=periodEveryN
|
||||
syn match periodEvery 'every\s\+' nextgroup=periodSingle
|
||||
syn match periodEveryN 'every \(\d\+\)\=\s\+' nextgroup=periodPlural
|
||||
|
||||
syn case match
|
||||
|
||||
syn match ledgerComment '^;.*'
|
||||
syn match ledgerCommand '^[YPNDC]'
|
||||
syn match ledgerDirective '^!' nextgroup=bangDirective
|
||||
syn match ledgerPeriodEntry '^\~\s*.*'he=s contains=periodRecurring,periodEvery,periodEveryN
|
||||
"syn match ledgerAutomatedEntry '^=\s*'he=s contains=valueExpression
|
||||
|
||||
hi def link ledgerComment Comment
|
||||
hi def link ledgerCommand Keyword
|
||||
hi def link ledgerDirective Special
|
||||
hi def link ledgerPeriodEntry Special
|
||||
|
||||
hi def link periodRecurring Keyword
|
||||
hi def link periodSingle Keyword
|
||||
hi def link periodPlural Keyword
|
||||
hi def link periodEvery Keyword
|
||||
hi def link periodEveryN Keyword
|
Loading…
Add table
Add a link
Reference in a new issue