Add support for Lua comment style for MagicComments #8859
Labels
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
good first issue
If you are just getting started with Docusaurus, this issue should be a good place to begin.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
The current magic comment syntax for highlighting is great but it doesn't have support for Lua's comment style.
Lua uses
--
for short single line comments. Right now I resort to using to using the C/Python comment styles as a workaround but this makes copy/pasting/testing the code snippets a pain since I need to keep removing these invalid lines.Reproducible demo
No response
Steps to reproduce
Expected behavior
Expected
-- highlight-start
and-- highlight-end
to work in lua but it does not.Actual behavior
Does not work
Your environment
No response
Self-service
The text was updated successfully, but these errors were encountered: