Skip to content

Commit

Permalink
allow \r
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Feb 14, 2019
1 parent 6de4101 commit e7f0584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ pid|tid|cgroup|uid|gid|nsecs|cpu|comm|kstack|stack|ustack|arg[0-9]|retval|func|p
<STR>[^\\\n\"]+ { buffer += std::string(yytext); }
<STR>\\n { buffer += std::string("\n"); }
<STR>\\t { buffer += std::string("\t"); }
<STR>\\r { buffer += std::string("\r"); }
<STR>\\\" { buffer += std::string("\""); }
<STR>\\\\ { buffer += std::string("\\"); }
<STR>\n { driver.error(loc, std::string("unterminated string")); BEGIN(INITIAL); }
Expand Down

0 comments on commit e7f0584

Please sign in to comment.