Skip to content

Commit

Permalink
Merge pull request #254 from draios/dont-trim-strings
Browse files Browse the repository at this point in the history
Don't trim quoted strings
  • Loading branch information
mstemm committed Jun 20, 2017
2 parents 38f488b + 481582c commit 2991ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/engine/lua/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ end

local function terminal (tag)
-- Rather than trim the whitespace in this way, it would be nicer to exclude it from the capture...
return token(V(tag), tag) / function (tok) return { type = tag, value = trim(tok)} end
return token(V(tag), tag) / function (tok) val = tok; if tag ~= "String" then val = trim(tok) end; return { type = tag, value = val} end
end

local function unaryboolop (op, e)
Expand Down

0 comments on commit 2991ea4

Please sign in to comment.