Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
b9452c22
Commit
b9452c22
authored
Aug 25, 2014
by
Julien Lopez
Browse files
[FIX] Bug #31 fixed
parent
f49dc4b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/ulexer.ml
View file @
b9452c22
...
@@ -226,7 +226,7 @@ let rec token = lexer
...
@@ -226,7 +226,7 @@ let rec token = lexer
string (L.lexeme_start lexbuf) '"
'
lexbuf
;
string (L.lexeme_start lexbuf) '"
'
lexbuf
;
let
s
=
get_stored_string
()
in
let
s
=
get_stored_string
()
in
return_loc
start
(
L
.
lexeme_end
lexbuf
)
(
STRING
s
)
return_loc
start
(
L
.
lexeme_end
lexbuf
)
(
STRING
s
)
|
"'"
"
\\
"
?
_
"'"
->
|
"'"
[
^
"'"
]
+
"'"
->
L
.
rollback
lexbuf
;
L
.
rollback
lexbuf
;
(
fun
_
->
lexer
(
fun
_
->
lexer
|
"'"
->
let
start
=
L
.
lexeme_start
lexbuf
in
|
"'"
->
let
start
=
L
.
lexeme_start
lexbuf
in
...
@@ -280,7 +280,7 @@ and token2 = lexer
...
@@ -280,7 +280,7 @@ and token2 = lexer
string (L.lexeme_start lexbuf) '"
'
lexbuf
;
string (L.lexeme_start lexbuf) '"
'
lexbuf
;
let
s
=
get_stored_string
()
in
let
s
=
get_stored_string
()
in
return_loc
start
(
L
.
lexeme_end
lexbuf
)
(
STRING
s
)
return_loc
start
(
L
.
lexeme_end
lexbuf
)
(
STRING
s
)
|
"'"
"
\\
"
?
_
"'--'"
"
\\
"
?
_
"'"
|
"'"
[
^
"'"
]
+
"'--'"
[
^
"'"
]
+
"'"
|
"'"
[
^
'\''
]
+
"'"
not_xml_letter
->
|
"'"
[
^
'\''
]
+
"'"
not_xml_letter
->
L
.
rollback
lexbuf
;
L
.
rollback
lexbuf
;
(
fun
_
->
lexer
(
fun
_
->
lexer
...
@@ -345,7 +345,7 @@ and token2toplevel = lexer
...
@@ -345,7 +345,7 @@ and token2toplevel = lexer
string (L.lexeme_start lexbuf) '"
'
lexbuf
;
string (L.lexeme_start lexbuf) '"
'
lexbuf
;
let
s
=
get_stored_string
()
in
let
s
=
get_stored_string
()
in
return_loc
start
(
L
.
lexeme_end
lexbuf
)
(
STRING
s
)
return_loc
start
(
L
.
lexeme_end
lexbuf
)
(
STRING
s
)
|
"'"
"
\\
"
?
_
"'--'"
"
\\
"
?
_
"'"
|
"'"
[
^
"'"
]
+
"'--'"
[
^
"'"
]
+
"'"
|
"'"
((
";"
[
^
";'"
])
|
[
^
";'"
])
*
";"
?
"'"
not_xml_letter
->
|
"'"
((
";"
[
^
";'"
])
|
[
^
";'"
])
*
";"
?
"'"
not_xml_letter
->
L
.
rollback
lexbuf
;
L
.
rollback
lexbuf
;
(
fun
_
->
lexer
(
fun
_
->
lexer
...
...
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