aqua-vscode/README.md

54 lines
2.1 KiB
Markdown
Raw Normal View History

2023-02-22 08:17:26 +03:00
# Aqua Syntax Highlighting
2023-02-22 08:17:26 +03:00
The tool enables syntax highlighting for [Aqua](https://github.com/fluencelabs/aqua) programming language, compilation on file changes, and go-to definition in Visual Studio.
2023-02-22 08:17:26 +03:00
## Installation and Usage
2023-02-22 08:17:26 +03:00
Installation is pretty simple:
2023-02-22 08:17:26 +03:00
1. Install [the extension](https://marketplace.visualstudio.com/items?itemName=FluenceLabs.aqua).
2. Configure colors for Aqua-specific tokens if needed (see below).
Add the following lines to the [`settings.json`](https://code.visualstudio.com/docs/getstarted/settings) file. Feel free to choose colors according to your favorite theme. In the example below, services will be highlighted as green and all keywords that affect the topology will be highlighted as red.
```json
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "keyword.topology.aqua",
"settings": {
"foreground": "#FF0000",
}
},
{
"scope": "support.service.aqua",
"settings": {
"foreground": "#00FF00",
}
}
2023-02-22 08:17:26 +03:00
]
}
```
2023-02-22 08:17:26 +03:00
More details can be found [here](vsc-extension-quickstart.md).
2023-02-22 08:17:26 +03:00
NOTE: if you're going to change pattern names, check out the naming rules in [TextMate Grammar doc](https://macromates.com/manual/en/language_grammars). You have to use the predefined pattern naming scheme, or the syntax won't be highlighted.
2021-05-27 12:59:20 +03:00
2023-02-22 08:17:26 +03:00
## Support
2023-02-22 08:17:26 +03:00
Please, file an [issue](https://github.com/fluencelabs/aqua-vscode/issues) if you find a bug. You can also contact us at [Discord](https://discord.com/invite/5qSnPZKh7u) or [Telegram](https://t.me/fluence_project). We will do our best to resolve the issue ASAP.
2021-05-27 12:59:20 +03:00
2021-05-20 19:05:53 +03:00
2023-02-22 08:17:26 +03:00
## Contributing
2021-05-25 12:57:56 +03:00
2023-02-22 08:17:26 +03:00
Any interested person is welcome to contribute to the project. Please, make sure you read and follow some basic [rules](./CONTRIBUTING.md).
2021-05-25 12:57:56 +03:00
2021-05-25 12:57:56 +03:00
## License
2023-02-22 08:17:26 +03:00
All software code is copyright (c) Fluence Labs, Inc. under the [Apache-2.0](./LICENSE) license.