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

Comment span class for lua is 'do', not 'co' as I would expect #23

Closed
larryhynes opened this issue Nov 7, 2017 · 1 comment
Closed

Comments

@larryhynes
Copy link

Hi

The following example:

~~~lua
-- Comment
~~~

~~~sh
# Comment
~~~

~~~rust
// Comment
~~~

~~~c
/*
 * Comment
 */
~~~

yields the following output:

<pre class="sourceCode lua" id="cb1"><code class="sourceCode lua"><div class="sourceLine" id="cb1-1" data-line-number="1"><span class="do">-- Comment</span></div></code></pre>
<pre class="sourceCode sh" id="cb2"><code class="sourceCode bash"><div class="sourceLine" id="cb2-1" data-line-number="1"><span class="co"># Comment</span></div></code></pre>
<pre class="sourceCode rust" id="cb3"><code class="sourceCode rust"><div class="sourceLine" id="cb3-1" data-line-number="1"><span class="co">// Comment</span></div></code></pre>
<pre class="sourceCode c" id="cb4"><code class="sourceCode c"><div class="sourceLine" id="cb4-1" data-line-number="1"><span class="co">/*</span></div>
<div class="sourceLine" id="cb4-2" data-line-number="2"><span class="co"> * Comment</span></div>
<div class="sourceLine" id="cb4-3" data-line-number="3"><span class="co"> */</span></div></code></pre>

Note that in the output each language's comments, with the exception of lua's, are given the span class co. (I have always assumed that was shorthand forcomment.)

Did lua's comment syntax change, or is this expected behaviour from skylighting, or should I be making my enquiries upstream of you?

@larryhynes
Copy link
Author

(It should be noted that I'm using pandoc, not skylighting standalone, so as per this issue I'll stop making noise here.)

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

1 participant