Hi,
This is the weekly report for the Templates project.
What the plan for the last week was:
- Continue testing the editor and the grammar.
All the above changes contain specific tests, but more are needed to ensure the grammar is correct.
- start looking into context-dependent syntax highlighting
What has been accomplished:
- More tests have been added in the change set at [1].
At the moment, all the grammar rules are tested, both with input files that represent possible snippets (see SmoketestTemplatesTest), as well as specific lexer and parser tests.
- I've pushed a change set that adds context-dependent syntax highlighting for variables.[2]+(Bug 424301)
For example, for the word "int", this works in the following way:
- used as type definition: "int s;" -> it is highlighted (even if it is in a template variable : "${s:newName(int)}"
- used as a template variable id: "${int:newName(int)}" -> it is not highlighted.
See the screenshot at [3] for more examples of different highlights.
What the plan for next week is:
My exam period starts next week and I won't be able to work that much.
- Add syntax highlighting for comments.
At the moment, comments are not colored at all. This fix would make comments appear with the default java comment color (green).
Best Regards,
Stefan.
[1]:<https://git.eclipse.org/r/#/c/27609/>
[2]: <https://git.eclipse.org/r/#/c/27862/>
[3]: