Skip to content

Commit

Permalink
libcore|Info: Flag for values read from quoted string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 10, 2016
1 parent 286379e commit 56d94d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/sdk/libcore/include/de/data/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ class DENG2_PUBLIC Info
/// Value of a key/list element.
struct Value {
enum Flag {
Script = 0x1, ///< Assigned with $= (to be parsed as script).
Script = 0x1, ///< Assigned with $= (to be parsed as script).
StringLiteral = 0x2, ///< Quoted string literal (otherwise a plain token).
DefaultFlags = 0
};
Q_DECLARE_FLAGS(Flags, Flag)
Expand Down
1 change: 1 addition & 0 deletions doomsday/sdk/libcore/src/data/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ DENG2_PIMPL(Info)
// The value will be composed of any number of sub-strings.
if(peekToken() == "\"")
{
value.flags |= InfoValue::StringLiteral;
while(peekToken() == "\"")
{
value.text += parseString();
Expand Down

0 comments on commit 56d94d0

Please sign in to comment.