aboutsummaryrefslogtreecommitdiffhomepage
path: root/errortest/mainapp
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2024-04-28 16:15:51 +0200
committerSamuel Lidén Borell <samuel@kodafritt.se>2024-04-28 16:15:51 +0200
commit8cc1b367bb7f9c1edc74edad3aacead996f04f45 (patch)
tree7110e9ba1175a8a51a110efed9f66ec2f6053537 /errortest/mainapp
parenta715488d1ab042392a83dca9f6b221bc0d065756 (diff)
downloadslul-8cc1b367bb7f9c1edc74edad3aacead996f04f45.tar.gz
slul-8cc1b367bb7f9c1edc74edad3aacead996f04f45.tar.bz2
slul-8cc1b367bb7f9c1edc74edad3aacead996f04f45.zip
Parser: Split "too many }" error
Diffstat (limited to 'errortest/mainapp')
-rw-r--r--errortest/mainapp/funcchk.slul10
1 files changed, 8 insertions, 2 deletions
diff --git a/errortest/mainapp/funcchk.slul b/errortest/mainapp/funcchk.slul
index 8ba3c22..fd5f270 100644
--- a/errortest/mainapp/funcchk.slul
+++ b/errortest/mainapp/funcchk.slul
@@ -83,12 +83,12 @@ func bad_statements()
# ERROR .10: error: Incomplete expression
while
int dummy
- # ERROR +2.8: error: Too many } (or final } is indented)
+ # ERROR +2.8: error: Too many }
# ERROR .8: error: Missing {
do }
# ERROR .7: error: Missing {
do
- # ERROR .5: error: Too many } (or final } is indented)
+ # ERROR .5: error: Too many }
}
# ERROR .5: warning: Unreachable statements after return
@@ -257,6 +257,12 @@ func funcchk_badend2a()
# ERROR +0.1: error: Missing } after end of function
data int funcchk_badend2c = 1
+func funcchk_badend3 ()
+{
+# ERROR .2: error: Final } is indented
+ }
+data int funcchk_badend3b = 2
+
func funcchk_baddecl()
{
# ERROR .8: error: Expected an identifier here