Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elazarcoh/cpp2-syntax

cpp2 (cppfront) Syntax Highlighting for VSCode
https://github.com/elazarcoh/cpp2-syntax

Last synced: 3 months ago
JSON representation

cpp2 (cppfront) Syntax Highlighting for VSCode

Awesome Lists containing this project

README

        

# [cpp2 (cppfront)](https://github.com/hsutter/cppfront) Syntax Highlighting for VSCode

This extension provides syntax highlighting for the experimental [cpp2](https://github.com/hsutter/cppfront) language.

It support most of the pure-cpp2 grammar to date (new syntax since last version is still on-going).

It supports highlighting of plain C++ in cpp2 source code, but we have to mark the C++ block with a special comment:

```cpp
/* lang:cpp */
int main() {
return 0;
}
/* lang:end */
```

For any issues, please file them on the [GitHub repo](https://github.com/elazarcoh/cpp2-syntax).

![Alt text](resources/syntax-highligh-example.png)

## Build

```bash
yarn install
yarn run build
yarn run package
```

The output VSIX file is located under `cpp2`.