antlr / antlr/Antlr4Formatter

wrong formatting

Open
#36 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
ANTLR
Stars
47
Forks
18
PR merge metrics
No merged PRs in 30d

Description

This
```
r8 returns[int operandSize,int col]:
```

will become
```
r8 returns [ i n t o p e r a n d S i z e , i n t c o l ]
```

Many spaces inserted between characters, which is wrong.
thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the formatter behavior using the ANTLR grammar snippet in the issue and compare the current output with the expected spacing shown there. Trace the formatting path responsible for splitting characters, then verify that the snippet retains its intended spaces and type syntax.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.