From a2c2ec734380e50689b110976c88770e5731dd24 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sun, 22 Sep 2024 15:58:20 +0200 Subject: Add new data format --- data-format/ftdetect/fcard.vim | 1 + data-format/syntax/fcard.vim | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 data-format/ftdetect/fcard.vim create mode 100644 data-format/syntax/fcard.vim (limited to 'data-format') 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 -- cgit v1.2.3