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

feat: front matter block support #106

Closed ldez closed 8 years ago

ldez commented 8 years ago

Description

Related to #56.

Syntax example


---
receipt:     Oz-Ware Purchase Invoice
customer:
    given:   Dorothy

items:
    - part_no:   A4786
      descrip:   Water Bucket (Filled)
      price:     1.47

bill-to:  &id001
    street: |
            123 Tornado Alley
            Suite 16
    city:   East Centerville

specialDelivery:  >
    Follow the Yellow Brick
    Road to the Emerald City.
    Pay no attention to the
    man behind the curtain.
test: test

---

Screenshots

capture du 2016-05-11 01-02-10

mojavelinux commented 8 years ago

I gave it a quick test. Works exactly as expected. Nice job!

nicorikken commented 8 years ago

Nice, clean implementation. 👍 I guess the real users will have to report if more regex intelligence is needed to prevent some edge-cases. I'll merge this one.