Improve YueScript support to continue expression on newline
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 613
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
Currently YueScript only supports continue expression on newline if the operator is at the end of the line. This is helpful but for me I prefer to put the operator at the beginning of the line.
I hove YueScript can support continue expression on newline if the operator is at the beginning of the line.
This is more consistent with the other languages, it's more readable and easier to comment out a expression clause for convenient.
exp = longExpMain
or longExpA
or longExpB
or longExpC
-- or longExpD
-- easier to comment out when to experiment with code
Of course, I know I can put \ at the end of line but it just make code too ugly to look at and not readable.
Thanks and regards!
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
No source file or test is named in the issue. Start by locating the YueScript parser entry point for multiline expressions, then compare handling when the operator ends a line with the requested leading-operator form; done means the example parses and compiles without a trailing backslash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100