BraneScript Syntax HighlightingThis repository contains code that implements syntax highlighting for the BraneScript domain-specific language, part of the EPI Project. Currently, the only system implementing it is BRANE, which is a workflow execution system for use in the medical domain. It, and BraneScript, are designed as part of the Enabling Personalized Interventions project. BraneScript itself is a script-like language with which one can define workflows. These workflows are high-level control flow specifications of tasks, or functions, which are bunled in packages within the BRANE ecosystem. To support this, the language has the familiar basic concepts (variables, classes, functions, if-statements, while-loop, for-loops), as well as some that are specialized towards workflow execution (parallel-statements, package imports, on-structs). FeaturesThis extension adds basic syntax highlighting for keywords, variables, comments and constants. In addition, it provides limited additional information to the editor such that it can comment large blocks, provide auto-matching for brackets and quotes and properly highlights them. However, this extension does not add a language server, so any context-dependent highlighting or suggestions are not provided at this time.
In the future, adding a language server would be optimal. Moreover, syntax highlighting for BraneScript's sister language -Bakery- is required too. InstallationTo install the extension in your local setup, you can either download the extension via the marketplace (recommended), download the package VSIX file from the repository, or compile the VSIX file yourself. MarketplaceTo download the extension from the marketplace, simply go the Then, search for "branescript" and click on
This method is recommended because you can also automatically receive updates. DownloadingYou can also choose to download a specific version of the extension from its repository. Simply select the desired release, and then download the Then, you can install the extension by going to the
Navigate to the
The extension should be installed once this operation completes. CompilationBefore you begin, you should first install
Then you can clone the repository:
With
This will generate the package To install the extension, you can follow the steps taken for downloading the extension, except that you already have a UsageTo use the extension, simply create a new file.
If you give the new file a
You can do the same trick on existing files to apply BraneScript's syntax highlighting. Release NotesA brief overview of each release is given here. For more details, check the CHANGELOG.md file. 0.1.1Added extension logo, fixed README image. 0.1.0Initial release of the extension. |