summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-11-08 19:05:20 +0100
committerPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-11-08 19:05:20 +0100
commit97a3d4c5cda16e5d3e666b6e9ab2e6ad80a98dd1 (patch)
treea1db6c76d5f8fd2e8f753ebf6d383d5eed207f5c
parentFix multi variable declaration (diff)
Fix string lexing
-rw-r--r--source/mod_student/lexer.mll2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/mod_student/lexer.mll b/source/mod_student/lexer.mll
index bfc279a..1d5f9f2 100644
--- a/source/mod_student/lexer.mll
+++ b/source/mod_student/lexer.mll
@@ -86,7 +86,7 @@ let implode l =
       (* vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 
        * Miejsce na twoje reguły
        *)
-      | '"' str as e '"'  { STRING (unescape e) }
+      | '"' (str as e) '"'  { STRING (unescape e) }
       | "'" (chr as e) "'"  { CHAR (unescape_chr e) }
       | ","       { COMMA }
       | ";"       { SEMICOLON }