rokucommunity / rokucommunity/brighterscript-formatter
Indenting confused by single line multi statement if statment
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 17
- Forks
- 10
- Avg merge
- 49m
- Merged PRs (30d)
- 7
Description
A single line but multi statement if confuses it unless the statement ends with a ':'
if X = 1: Y = 2: Z = 3: end if
will lose indenting on it and subsequent lines, but
if X = 1: Y = 2: Z = 3: end if:
works fine (notice the trailing colon).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the formatter behavior with the two single-line multi-statement if examples in the issue, then trace the indentation handling for that statement form. Done means both examples preserve correct indentation for the statement and subsequent lines, with coverage for the trailing-colon difference.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100