summaryrefslogtreecommitdiffstats
path: root/data-format/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'data-format/syntax')
-rw-r--r--data-format/syntax/fcard.vim18
1 files changed, 18 insertions, 0 deletions
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