I have started learning about microOMEGAs, which led me to lanHEP. Although beautiful, it seems to have no support for VSCode yet. Therefore, I am creating lanHEP language support for VSCode.
This extension provides syntax highlighting, indentation rules, and keyword support for the lanHEP language. It is designed for efficient editing and development of lanHEP models, with proper classification of keywords, operators, constants, and functions.
Created using Yeoman.
Implemented so far:
- lanHEP syntax highlighting.
- Auto-completion support for brackets and strings (e.g.,
{}
,()
). - Support for comment shortcuts (
%
).
Planned Features:
- Intellisense for lanHEP, including keyword suggestions and error detection.
- Improvements to grammar for VSCode, such as better recognition of lanHEP constructs.
Here’s an example of lanHEP syntax highlighting using this extension:
This extension is available on the VSCode Marketplace.
Alternatively, you can manually install it using the .vsix
file from the release page.
- Open VSCode.
- Go to the Extensions Marketplace (
Cmd+Shift+X
orCtrl+Shift+X
). - Search for
lanHEP VSCode Utils
. - Click "Install".
- Go to the Releases page of this repository.
- Download the latest
.vsix
file. - Open VSCode.
- Open the Command Palette (
Cmd+Shift+P
orCtrl+Shift+P
) and typeExtensions: Install from VSIX...
. - Select the downloaded
.vsix
file. - Wait for the installation to complete.
- Some keywords may be missing or not highlighted correctly. These will be addressed in the next release.
- Auto-completion is currently limited to brackets and strings.
For a list of updates and fixes, see CHANGELOG.md.
If you encounter any issues, please create an issue in the repository. I will respond as soon as possible.