We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ea929 commit 4bb31f0Copy full SHA for 4bb31f0
1 file changed
inputters/xml.lua
@@ -7,6 +7,12 @@ inputter._name = "xml"
7
inputter.order = 2
8
9
local function startcommand (parser, command, options)
10
+ -- Discard list values (non-key/value), stuffed by LXP/expat to make it possible to deduce the order of keys in
11
+ -- the source. We're not using it, so we don't care and it is clutter in the AST that makes it different from
12
+ -- ASTs generated from SIL inputs.
13
+ for i = 1, #options do
14
+ options[i] = nil
15
+ end
16
local stack = parser:getcallbacks().stack
17
local lno, col, pos = parser:pos()
18
local position = { lno = lno, col = col, pos = pos }
0 commit comments