summaryrefslogtreecommitdiffstats
path: root/data-format/syntax/fcard.vim
blob: 9a5cce805ebe4c182759211ad71d537717b2ce29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" Vim syntax file
" Language: flashcard files
" Latest Revision: 10/07/2017

if exists("b:current_syntax")
  finish
endif

" Legacy format
syn match cardTitle '^CARD: .*$'
hi def link cardTitle Structure

" New format
syn match cardFront '^FRONT$'
hi def link cardFront Structure

syn match cardBack '^BACK$'
hi def link cardBack Constant