Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad syntax highlighting: identifier error #77

Closed
brevzin opened this issue Jun 12, 2019 · 3 comments
Closed

Bad syntax highlighting: identifier error #77

brevzin opened this issue Jun 12, 2019 · 3 comments

Comments

@brevzin
Copy link

brevzin commented Jun 12, 2019

Short examples:

$ echo "\`c3way\`{.cpp}" | pandoc
<p><code class="sourceCode cpp">c<span class="dv">3</span><span class="er">way</span></code></p>

$ echo "\`v1 < v2\`{.cpp}" | pandoc
<p><code class="sourceCode cpp">v1 &lt; v<span class="dv">2</span></code></p>

It seems like there's something up with DetectIdentifier. We replaced the instance of that within "match identifier" with <RegExpr attribute="Ignore" context="#stay" String="[a-zA-Z_]\w*" /> and the above got parsed correctly.

@jgm
Copy link
Owner

jgm commented Jun 12, 2019

Sounds like 9e9ea06 which is fixed in 0.8.1. pandoc --version will tell you which version of skylighting your pandoc is compiled against...

@brevzin
Copy link
Author

brevzin commented Jun 12, 2019

0.7.7. I think I still have the latest release (2.7.2).

@jgm
Copy link
Owner

jgm commented Jun 12, 2019

This is fixed now. You can recompile pandoc from source against 0.8.1, or wait for the next pandoc release.

@jgm jgm closed this as completed Jun 12, 2019
mpark added a commit to mpark/wg21 that referenced this issue Jun 12, 2019
On OS X, Homebrew is already building 2.7.3.
On Linux (e.g., Ubuntu), manual installation is required anyway.

This version includes the following bug fixes we care about:
  - jgm/pandoc#5529
  - jgm/pandoc#5574
  - jgm/skylighting#76
  - jgm/skylighting#77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants