Closed has2k1 closed 12 months ago
I'm seeing the same behavior in the Kate editor. (Of course, in x = "hello"
it's marked as a string.)
So, this may be intentional; at any rate, our skylighting library (jgm/skylighting) is correctly interpreting the KDE syntax definition.
If you like, you can investigate the python.xml syntax definition and/or submit a bug report to KDE's syntax highlighting framework.
https://github.com/KDE/syntax-highlighting/tree/master/data/syntax
I've transferred this to skylighting, which is the library that does the highlighting. But I think it should be closed, as the issue is upstream.
Ah yes, of course, I should have thought of that.
Explain the problem. When a lone python string is highlighted, it is tagged as comment. i.e.
class="co"
For comparison, the string is also valid in r and ruby and for them the highlight class is correct i.e.
class="st"
Try Pandoc with highlighting set.
Output
Pandoc version? 3.1.9