| Summary: | implement formatter for ROOM DSL | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] eTrice | Reporter: | Henrik Rentz-Reichert <hrr> | ||||||||||
| Component: | Core | Assignee: | Project Inbox <etrice.core-inbox> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||||
| Severity: | enhancement | ||||||||||||
| Priority: | P3 | ||||||||||||
| Version: | unspecified | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | 0.1.0 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Henrik Rentz-Reichert
Created attachment 188658 [details]
initial contribution by Herward Ahlheit
Initial version of formatter for ROOM DSL
Created attachment 188659 [details]
improved formatter
- whenever possible use grammar rule objects for linewraps and insert wraps after the rule
- simplify code if tokens have common rules (e.g. ".", ":")
- rules for <> and () brackets
- rules for single and multiline comments
Created attachment 190256 [details]
clean up of improved formatter
Comment on attachment 190256 [details]
clean up of improved formatter
accepted patch, thanks for the contribution!
The formatter works quite fine now. Created attachment 190387 [details]
Tight brackets if they are empty
closed resolved bug tagged as version 0.1.0 |