Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
ede62577
Commit
ede62577
authored
Mar 31, 2014
by
Guillaume Melquiond
Browse files
Properly count line breaks embedded in strings.
parent
5cae7968
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parser/lexer.mll
View file @
ede62577
...
...
@@ -290,7 +290,8 @@ and string = parse
Buffer
.
clear
string_buf
;
s
}
|
"
\\
"
(
_
as
c
)
{
Buffer
.
add_char
string_buf
(
char_for_backslash
c
);
string
lexbuf
}
{
if
c
=
'\n'
then
newline
lexbuf
;
Buffer
.
add_char
string_buf
(
char_for_backslash
c
);
string
lexbuf
}
|
newline
{
newline
lexbuf
;
Buffer
.
add_char
string_buf
'\n'
;
string
lexbuf
}
|
eof
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment