[Gambas-user] [Git][gambas/gambas][master] Correctly raise an error if a quoted identifier starting with '{' has no corresponding '}'.

Benoît Minisini gitlab at mg.gitlab.com
Mon Jan 22 20:11:15 CET 2018


Benoît Minisini pushed to branch master at Gambas / gambas


Commits:
df26bab7 by gambas at 2018-01-22T20:10:30+01:00
Correctly raise an error if a quoted identifier starting with '{' has no corresponding '}'.

[COMPILER]
* BUG: Correctly raise an error if a quoted identifier starting with '{' has no corresponding '}'.

- - - - -


1 changed file:

- main/gbc/gbc_read.c


Changes:

=====================================
main/gbc/gbc_read.c
=====================================
--- a/main/gbc/gbc_read.c
+++ b/main/gbc/gbc_read.c
@@ -863,8 +863,10 @@ static void add_quoted_identifier(void)
 		len++;
 	}
 
-	if (get_char() == '}')
-		source_ptr++;
+	if (get_char() != '}')
+		THROW("Missing '}'");
+	
+	source_ptr++;
 
 	if (PATTERN_is(last_pattern, RS_EVENT) || PATTERN_is(last_pattern, RS_RAISE))
 	{



View it on GitLab: https://gitlab.com/gambas/gambas/commit/df26bab7c4814fa73e7fb2b2369e20031a38db7f

---
View it on GitLab: https://gitlab.com/gambas/gambas/commit/df26bab7c4814fa73e7fb2b2369e20031a38db7f
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180122/d45b1a2e/attachment-0001.html>


More information about the User mailing list