amber-lang / amber

💎 Amber the programming language compiled to Bash
https://amber-lang.com
GNU General Public License v3.0
3.94k stars 89 forks source link

[BUG] If missing closing parenthesis add a warning and detected as variable #321

Open Mte90 opened 4 months ago

Mte90 commented 4 months ago

Code like this:

import * from "test-master.ab"

test(

Return

Expected expression
at ./test.ab:6:6

thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/heraclitus-compiler-1.5.8/src/compiling/failing/logger.rs:132:24:
index out of bounds: the len is 4 but the index is 4
Mte90 commented 3 weeks ago

Now the error is different:

import * from "std/text"

split(

ERROR Variable 'split' does not exist