rokucommunity / rokucommunity/brighterscript-formatter
Indention is incorrect when using colon-statement separator
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 17
- Forks
- 10
- Avg merge
- 49m
- Merged PRs (30d)
- 7
Description
Roku Documentation: https://developer.roku.com/en-ca/docs/references/brightscript/language/statement-summary.md
Actual Indentation for Colon-Statement Syntax
See line 706, incorrectly knocking the indent back when using colon-statement syntax
Expected Indentation for Colon-Statement Syntax
This example is taken before the BS code formatter modified the indentation.
Correct Indentation Shown With If-Then Syntax
See line 706, correctly indented when using "if then" syntax
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 with the colon-statement example referenced at line 706 of the BrightScript statement-summary documentation and reproduce the formatter output shown in the issue. Trace the formatter's indentation handling for that syntax, then verify that the result matches the expected indentation and remains consistent with the if-then example.
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
- Mostly clear
- Newbie friendliness
- 35/100