Skip to content

Commit

Permalink
Syntax: MultiMarkdown extends Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Mar 30, 2022
1 parent 0ac2df9 commit fbcf6ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions syntaxes/MultiMarkdown.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
name: MultiMarkdown
scope: text.html.markdown.multimarkdown

extends: Markdown.sublime-syntax

first_line_match: (?i:^format:\s*complete\s*$)

variables:
Expand All @@ -17,7 +19,7 @@ contexts:

multimarkdown-header:
- match: ^$
pop: true
pop: 1
- match: ^(?:{{header}}\s*)?
captures:
1: keyword.other.multimarkdown
Expand All @@ -28,8 +30,8 @@ contexts:
- meta_scope: meta.header.multimarkdown
- meta_content_scope: string.unquoted.multimarkdown
- match: \n
pop: true
pop: 1

multimarkdown-content:
- meta_scope: meta.content.multimarkdown
- include: scope:text.html.markdown
- include: markdown

0 comments on commit fbcf6ef

Please sign in to comment.