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

Single line ifdef with brackets inside #186

Open lucascosti opened 6 years ago

lucascosti commented 6 years ago

Description

I have a single line ifdef (or ifndef) that has an xref in the included content. The square brackets of the xref breaks the ifdef highlighting. Not sure if this is the same issue as #131.

Screenshots

asciidoc-language-ifdef

Syntax example

// This para for regular OpenShift only
ifndef::eap-openshift-online[After you have completed the xref:installation_initial_setup[initial setup] instructions, this section helps you get started with {xpaasproduct-shortname} by performing the required preliminary steps before you can install the image on OpenShift. This process consists of the following steps:]

// This para for OpenShift Online only
ifdef::eap-openshift-online[This section helps you get started with {xpaasproduct-shortname} by performing the required preliminary steps before you can install the image on OpenShift. This process consists of the following steps:]