Open
Description
Due to the lack of workforce on this project, all grammar and language customizations should be avoided. Let's stick to the default C++ behavior from VS Code that is used by a large number of developers.
IDE2 users complain about the syntax highlighting (arduino/arduino-ide#2305), which seems to be a reasonable complaint; however, this is how syntax coloring works in VS Code, Eclipse Theia, GitHub, etc., and this project also provides the same behavior. There is no real reason for copying outdated grammar and syntax into this project.
Acceptance criteria:
- Remove copied grammar and language files from the project,
- Use grammar injection to support customized coloring for
loop
,setup
, etc., - If the grammar injection is impossible, programmatically generate the customized grammar and syntax, but do not copy it. See how the Code devs generate it on the fly: https://github.com/microsoft/vscode/blob/36480163695273734a80cc8fa2080952708eeb57/extensions/cpp/build/update-grammars.js. Evaluate whether
vscode-grammar-updater
can be used.