Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 2.06 KB

README.md

File metadata and controls

53 lines (33 loc) · 2.06 KB

Aqua Syntax Highlighting

The tool enables syntax highlighting for Aqua programming language, compilation on file changes, and go-to definition in Visual Studio.

Installation and Usage

Installation is pretty simple:

  1. Install the extension.

  2. Configure colors for Aqua-specific tokens if needed (see below).

    Add the following lines to the settings.json 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.

        "editor.tokenColorCustomizations": {
            "textMateRules": [
                {
                    "scope": "keyword.topology.aqua",
                    "settings": {
                        "foreground": "#FF0000",
                    }
                },
                {
                    "scope": "support.service.aqua",
                    "settings": {
                        "foreground": "#00FF00",
                    }
                }
            ]
        }

More details can be found here.

NOTE: if you're going to change pattern names, check out the naming rules in TextMate Grammar doc. You have to use the predefined pattern naming scheme, or the syntax won't be highlighted.

Support

Please, file an issue if you find a bug. You can also contact us at Discord or Telegram. We will do our best to resolve the issue ASAP.

Contributing

Any interested person is welcome to contribute to the project. Please, make sure you read and follow some basic rules.

License

All software code is copyright (c) Fluence Labs, Inc. under the Apache-2.0 license.