asciidoctor / atom-language-asciidoc

⚛ AsciiDoc language package for the Atom editor.
https://atom.io/packages/language-asciidoc
MIT License
42 stars 20 forks source link

Highlight block-level AsciiDoc inside example and sidebar blocks #157

Closed mojavelinux closed 8 years ago

mojavelinux commented 8 years ago

Description

The example and sidebar blocks are compound blocks, which means they support nested AsciiDoc content. Therefore, the language should descend into the block to match and highlight AsciiDoc syntax.

Screenshots

In this screenshot, the block title and the literal block should be highlighted. It's good that the image block is highlighted, but the highlighting shouldn't be limited to just block macros.

example-block-screenshot

Syntax example

====
Example block text.

.This is a screenshot
image::screenshot.jpg[]

....
literal block
....
====
mojavelinux commented 8 years ago

We probably should do the same for quote blocks as well, though it's much less likely that a quote block contains nested AsciiDoc blocks.

ldez commented 8 years ago

Now with #158:

capture du 2016-06-09 21-16-42 capture du 2016-06-09 21-17-18