diff options
Diffstat (limited to 'syntax')
-rw-r--r-- | syntax/fcard.vim | 11 | ||||
-rw-r--r-- | syntax/flashcard.lang | 20 |
2 files changed, 31 insertions, 0 deletions
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/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> |