diff options
Diffstat (limited to 'data-format')
-rw-r--r-- | data-format/ftdetect/fcard.vim | 1 | ||||
-rw-r--r-- | data-format/syntax/fcard.vim | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/data-format/ftdetect/fcard.vim b/data-format/ftdetect/fcard.vim new file mode 100644 index 0000000..f1cfbbf --- /dev/null +++ b/data-format/ftdetect/fcard.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.fcard set filetype=fcard diff --git a/data-format/syntax/fcard.vim b/data-format/syntax/fcard.vim new file mode 100644 index 0000000..9a5cce8 --- /dev/null +++ b/data-format/syntax/fcard.vim @@ -0,0 +1,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 |