Open-Jellycore
Open-Jellycore copied to clipboard
Unusual variable names valid in AppStore Jellycuts are invalid in Open-Jellycore
Describe the bug
The following code compile and runs in AppStore Jellycuts, but generates a syntax error in Open-Jellycore
import Shortcuts
var -(varA)="a"
quicklook(input: -(varA))
To Reproduce
Steps to reproduce the behavior:
- create a file a.jelly by copying the code above in to the file
- run the command jelly a.jelly --export --out u_a.shortcut
- observe "SYNTAX ERROR, line: 2,..."
Expected behavior
If AppStore Jellycuts is the golden standard, the code should compile and display "a" is the quick look
Information
- Device: [macBook Pro, 14-inch, 2021]
- OS: [Sonoma 14.5]
- Jellycuts Version [??? jelly command does not provide version info (/opt/homebrew/bin/jelly)]
- Jailbroken? [No]
Additional context
Variables in shortcuts can have strange names like "-(varA)". To what extent that should be supported in the jelly language is unclear, but both AppStore Jellycuts and Open-Jellycore should be consistent, so one can move code from one to the other and have them both compile or both fail.