-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hey there,
thank you for this lexer.
I am currently writing my thesis and was looking for a way to make the Latex code listings look nice. I use the minted package which uses pygmentize itself. But so far, the output does not yet satisfy my requirements.
Here is an example code snippet, where the lexer falsely marks ="
and "
in the second v-for
loop as an error.
<template>
<svg viewBox="-200, -200, 400, 400">
<g id="nodes">
<circle
v-for="node in graph.nodes"
:key="node.id"
:x="node.x"
:y="node.y"
:r="getNodeRadius(node)"
>
</g>
<g id="links">
<line
v-for="link in graph.links"
:key="link.id"
:x1="link.source.x"
:x2="link.target.x"
:y1="link.source.y"
:y2="link.target.y"
:style="getLinkStyle(link)"
/>
</g>
</svg>
</template>
👍 GitHubs Lexer does a good job ;)
The wrong output line looks like this:
<span class="na">v</span><span class="nt">-for</span><span class="err">="</span><span class="na">link</span> <span class="na">in</span> <span class="na">graph.links</span><span class="err">"</span>
I attached the full HTML output (as txt, Github doesnt support HTML 😩).
test.txt
Cheers,
Lukas
Metadata
Metadata
Assignees
Labels
No labels