This project is essentially a copy of the default Lua
grammar for VSCode
. This was initially forked from https://github.com/sumneko/lua.tmbundle. The main file that has been kept and minorly modified is Syntaxes/lua.tmLanguage.json, now converted to Syntaxes/mad.tmLanguage.json. Most other files have been deleted or heavily modified, see this commit.
The language configuration for MAD-NG has been directly copied from https://github.com/microsoft/vscode/blob/main/extensions/lua/language-configuration.json at this commit, with only a single change made.
The icon has been taken from the MAD github logo
- Adds
!
as a comment - Allows
1..2
and1.0..2.0
to be highlighted as integers and floats respectively - Adds a tab indentation after the syntax
\a, b, c =>
- Fixes bug in embedded c code, allowing for the use of variable length arrays (vla). See this issue
- Adds MAD-NG language injection to python strings, i.e. when using pymadng, your code can be highlighted correctly, not as a string.
Available at the VSCode Marketplace
Please feel free to open an issue on the GitHub if you have any feature requests, bugs/problems or suggestions for improvement.