summaryrefslogtreecommitdiffstats
path: root/syntax/flashcard.lang
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 /syntax/flashcard.lang
parentb3b6da8ae08a738b5548109e42eaad749d3234e3 (diff)
Added syntax highlighting for vim
Diffstat (limited to 'syntax/flashcard.lang')
-rw-r--r--syntax/flashcard.lang20
1 files changed, 20 insertions, 0 deletions
diff --git a/syntax/flashcard.lang b/syntax/flashcard.lang
new file mode 100644
index 0000000..267f5b2
--- /dev/null
+++ b/syntax/flashcard.lang
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<language id="flashcard" _name="Flashcard" version="2.0" _section="Markup">
+ <metadata>
+ <property name="globs">*.fcard</property>
+ </metadata>
+
+ <styles>
+ <style id="card_front" _name="card header" map-to="def:type" />
+ </styles>
+ <definitions>
+ <context id="flashcard">
+ <include>
+ <context id="card_front" style-ref="card_front">
+ <start>CARD:</start>
+ <end>$</end>
+ </context>
+ </include>
+ </context>
+ </definitions>
+</language>