Qeole / Enlight

Firefox add-on providing syntax highlighting for raw code, based on the highlight.js project.
Mozilla Public License 2.0
44 stars 2 forks source link

R syntax highlighting breaks at apostrophes inside comments #16

Closed vertesy closed 3 years ago

vertesy commented 3 years ago

When you check https://raw.githubusercontent.com/vertesy/CodeAndRoll/master/CodeAndRoll.R image

you can see that R syntax highlighting breaks apostrophes inside comments, particularly bad for roxygen skeletons

Qeole commented 3 years ago

Thank you, it seems that the comments are not correctly parsed indeed. But parsing is not done in the code of the add-on (I mean, by the code I maintain here). It is performed by the library that is embedded, highlight.js, which the add-on loads unchanged. I would encourage you to report the issue to the relevant project.