{"id":16612314,"url":"https://github.com/elazarcoh/cpp2-syntax","last_synced_at":"2025-10-29T18:30:40.826Z","repository":{"id":104849258,"uuid":"569107741","full_name":"elazarcoh/cpp2-syntax","owner":"elazarcoh","description":"cpp2 (cppfront) Syntax Highlighting for VSCode","archived":false,"fork":false,"pushed_at":"2023-11-12T06:25:50.000Z","size":241,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-11-12T07:23:50.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=elazarcoh.cpp2-syntax","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elazarcoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-22T05:03:21.000Z","updated_at":"2024-05-30T07:09:20.761Z","dependencies_parsed_at":null,"dependency_job_id":"fe00e9b3-f72d-4928-978b-ed146fe16afd","html_url":"https://github.com/elazarcoh/cpp2-syntax","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elazarcoh%2Fcpp2-syntax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elazarcoh%2Fcpp2-syntax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elazarcoh%2Fcpp2-syntax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elazarcoh%2Fcpp2-syntax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elazarcoh","download_url":"https://codeload.github.com/elazarcoh/cpp2-syntax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857406,"owners_count":16556067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T01:41:40.288Z","updated_at":"2025-10-29T18:30:40.821Z","avatar_url":"https://github.com/elazarcoh.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [cpp2 (cppfront)](https://github.com/hsutter/cppfront) Syntax Highlighting for VSCode\n\nThis extension provides syntax highlighting for the experimental [cpp2](https://github.com/hsutter/cppfront) language.\n\nIt support most of the pure-cpp2 grammar to date (new syntax since last version is still on-going).\n\nIt supports highlighting of plain C++ in cpp2 source code, but we have to mark the C++ block with a special comment:\n    \n```cpp\n/* lang:cpp */\nint main() {\n    return 0;\n}\n/* lang:end */\n```\n\nFor any issues, please file them on the [GitHub repo](https://github.com/elazarcoh/cpp2-syntax).\n\n![Alt text](resources/syntax-highligh-example.png)\n\n## Build the extension\n\n```bash\nyarn install\nyarn run build\nyarn run package\n```\n\nThe output VSIX file is located under `cpp2`.\n\n## Compile and run the test file\n\n```bash\ncppfront ./cpp2/test.cpp2 -import-std\nclang++ -I../cppfront/source/ test.cpp -std=c++20 -o test.exe\n./test.exe \n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felazarcoh%2Fcpp2-syntax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felazarcoh%2Fcpp2-syntax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felazarcoh%2Fcpp2-syntax/lists"}