diff options
author | Eddy Pedroni <epedroni@pm.me> | 2024-09-22 15:58:20 +0200 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2024-09-22 15:58:20 +0200 |
commit | a2c2ec734380e50689b110976c88770e5731dd24 (patch) | |
tree | 2fb8d9cd4355829b664fb71c5eae294a897af641 /data-format | |
parent | 89f86bec9198c0e298be53a13ca753b491197376 (diff) |
Add new data format
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 |