summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2017-07-10 07:54:52 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2017-07-10 07:54:52 +0200
commit89f86bec9198c0e298be53a13ca753b491197376 (patch)
treeb39af303314ac5a491832490a9aa72c47c205706
parentb3b6da8ae08a738b5548109e42eaad749d3234e3 (diff)
Added syntax highlighting for vim
-rw-r--r--ftdetect/fcard.vim1
-rw-r--r--syntax/fcard.vim11
-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