diff options
-rw-r--r-- | ftdetect/fcard.vim | 1 | ||||
-rw-r--r-- | syntax/fcard.vim | 11 | ||||
-rw-r--r-- | syntax/flashcard.lang (renamed from flashcard.lang) | 0 |
3 files changed, 12 insertions, 0 deletions
diff --git a/ftdetect/fcard.vim b/ftdetect/fcard.vim new file mode 100644 index 0000000..f1cfbbf --- /dev/null +++ b/ftdetect/fcard.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.fcard set filetype=fcard diff --git a/syntax/fcard.vim b/syntax/fcard.vim new file mode 100644 index 0000000..b4a66d9 --- /dev/null +++ b/syntax/fcard.vim @@ -0,0 +1,11 @@ +" Vim syntax file +" Language: flashcard files +" Latest Revision: 10/07/2017 + +if exists("b:current_syntax") + finish +endif + +syn match cardTitle '^CARD: .*$' + +hi def link cardTitle Structure diff --git a/flashcard.lang b/syntax/flashcard.lang index 267f5b2..267f5b2 100644 --- a/flashcard.lang +++ b/syntax/flashcard.lang |