IppClub / IppClub/YueScript

Improve YueScript support to continue expression on newline

Open
#124 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.