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
solverstack
vite
Commits
370c0835
Commit
370c0835
authored
May 01, 2009
by
Mathieu Faverge
Browse files
Accept string between ''
parent
c3f1ea1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parser/TokenSource.cpp
View file @
370c0835
...
...
@@ -139,7 +139,7 @@ void TokenSource::build_composite_token() {
break
;
}
}
while
(
_buffer
[
_cursor
]
!=
'"'
);
while
(
(
_buffer
[
_cursor
]
!=
'"'
)
&&
(
_buffer
[
_cursor
]
!=
'\''
))
;
_cursor
++
;
ensure_capacity
();
...
...
@@ -212,7 +212,8 @@ std::string *TokenSource::read_token() {
else
if
(
_buffer
[
_cursor
]
==
'%'
)
{
build_definition_starter
();
}
else
if
(
_buffer
[
_cursor
]
!=
'"'
)
{
else
if
((
_buffer
[
_cursor
]
!=
'"'
)
&&
(
_buffer
[
_cursor
]
!=
'\''
)){
build_simple_token
();
}
else
{
...
...
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