Skip to content

Commit

Permalink
support YAML front matter closed by dots
Browse files Browse the repository at this point in the history
fix bug reported in PR #448
  • Loading branch information
felixhao28 committed Sep 6, 2017
1 parent 229bb84 commit 0d53525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Markdown.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ contexts:
push:
- meta_scope: markup.raw.yaml.front-matter
- meta_content_scope: source.yaml
- match: ^---\s
- match: ^(---|\.\.\.)\s
pop: true
- include: scope:source.yaml
- match: (?<!\s)---\s*coffee\n$
push:
- meta_scope: markup.raw.coffee.front-matter
- meta_content_scope: source.coffee
- match: ^---\s
- match: ^(---|\.\.\.)\s
pop: true
- include: scope:source.coffee
- match: (?<!\s)---\s*json\n$
push:
- meta_scope: markup.raw.json.front-matter
- meta_content_scope: source.json
- match: ^---\s
- match: ^(---|\.\.\.)\s
pop: true
- include: scope:source.json
- match: ""
Expand Down
2 changes: 2 additions & 0 deletions messages/2.2.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ feedback you can use [GitHub issues][issues].

## Bug Fixes

* YAML front matter enclosed by "..." is now correctly recognized by syntax parser.

## New Features

## Changes
Expand Down

0 comments on commit 0d53525

Please sign in to comment.