some error message trimming done

This commit is contained in:
2025-10-17 23:26:15 +09:00
parent 00f6b70028
commit 8c6235be16
7 changed files with 116 additions and 51 deletions

View File

@ -1,3 +1,7 @@
return ##ERROR: syntax error - no value specified for 'return'
---
return 1 2 ##ERROR: syntax error - excessive argument to 'return' around '2'
---
@ -61,6 +65,14 @@ if (< 20 30) else { ##ERROR: syntax error - block expression expected as 'if' bo
}
---
elif (< 20 30) { } ##ERROR: syntax error - elif without if
---
else (< 20 30) { } ##ERROR: syntax error - else without if
---
catch (e) {} ##ERROR: syntax error - catch without try