blended-modeling / eatxt

Eclipse Public License 2.0
1 stars 1 forks source link

Inconsistent Auto-completion for Curly Braces #39

Open joerg-holtmann opened 2 years ago

joerg-holtmann commented 2 years ago

For many elements like FunctionFlowPort, the auto-completion proposes a opening curly brace after the shortName identifier independent of how many whitespaces follow the shortName identifier. This is the expected editor behavior.

However, for some elements like AnalysisFunctionType, the opening curly brace is only proposed directly following the shortName identifier. If one puts any whitespace after the shortName identifier, the opening curly brace doesn't get proposed.

This is due to the following differences in the grammar:

Can we fix this and handle uniformly, ideally like the first style to allow arbitrarily many whitespaces preceding the opening curly brace?

Wilson008 commented 2 years ago

Not really, actually, when you input some whitespace after shortName identifier in the rule AnalysisFunctionType, you will still be proposed with opening curly brace, it's in the relatively behind in the queue. @joerg-holtmann