Skip to content

jgray-19/madng-language

Repository files navigation

Origin

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

Changes for MAD-NG

  • Adds ! as a comment
  • Allows 1..2 and 1.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.

Installation

Available at the VSCode Marketplace

Issues and Improvements

Please feel free to open an issue on the GitHub if you have any feature requests, bugs/problems or suggestions for improvement.

About

VS Code support for MAD-NG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published