Skip to content

Inconsistent Auto-completion for Curly Braces #39

@joerg-holtmann

Description

@joerg-holtmann

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:

  • FunctionFlowPort and similar elements have a style like shortName=Identifier '{' ... '}';
  • AnalysisFunctionType and similar elements have a style like shortName=Identifier ('{' ... '}')?;

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions