Commit 370c0835 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Accept string between ''

parent c3f1ea1b
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment