Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

elazarcoh/cpp2-syntax

Open more actions menu

Repository files navigation

cpp2 (cppfront) Syntax Highlighting for VSCode

This extension provides syntax highlighting for the experimental cpp2 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:

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

For any issues, please file them on the GitHub repo.

Alt text

Build the extension

yarn install
yarn run build
yarn run package

The output VSIX file is located under cpp2.

Compile and run the test file

cppfront ./cpp2/test.cpp2 -import-std
clang++ -I../cppfront/source/ test.cpp -std=c++20 -o test.exe
./test.exe 

About

cpp2 (cppfront) Syntax Highlighting for VSCode

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.