Syntax highlighting errors when "yaml" declared with code fence


#1

I keep running into syntax highlighting errors with Markdown documents in Atom when I set off a code block with “yaml” as the language, like this:

collections:
- my_collection

Here’s a screenshot: http://www.screencast.com/t/IOONIVwQHOUE. After the YAML code block, the syntax highlighting gets messed up. Here’s another instance: http://www.screencast.com/t/5QJtz92hq

When I remove “yaml” from the opening fence in the code block, the syntax highlighting returns to normal. How can I add this yaml lexer into Atom’s syntax highlighting logic? Or should I just not use yaml as a language in code blocks?


#2

This looks to be a problem with the language-gfm package. I might be able to troubleshoot it later, but I’m going to tag @Wliu so that there’s awareness of this.


#3

Thanks. It looks like the gfm repo already has this issue identified and logged here.