Skip to content

Commit

Permalink
fix(inputs): Only allow reserved characters as 1-char commands
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 13, 2020
1 parent b13b99a commit 2a4c095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/inputs-texlike.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SILE.inputs.TeXlike.parser = function (_ENV)
local quote = P'"'
local quotedString = quote * C((1-quote)^1) * quote
local value = quotedString + (1-S",;]")^1
local myID = C(SILE.inputs.TeXlike.identifier + P(1)) / 1
local myID = C(SILE.inputs.TeXlike.identifier + S"{}\\%") / 1
local pair = Cg(myID * _ * "=" * _ * C(value)) * sep^-1 / function (...) local tbl = {...}; return tbl[1], tbl[#tbl] end
local list = Cf(Ct"" * pair^0, rawset)
local parameters = (
Expand Down

0 comments on commit 2a4c095

Please sign in to comment.