Skip to content

Commit

Permalink
ditto
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonchar committed Jun 18, 2024
1 parent cce90de commit 07ceb3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/generic/pgf/lib/documentfinder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ local lpeg = require("lpeg")
local C, Cf, Cg, Ct, P, S, V = lpeg.C, lpeg.Cf, lpeg.Cg, lpeg.Ct, lpeg.P, lpeg.S, lpeg.V
local u = require("utils")

local t = {}
local finder = {}

-- Grammar to extract code examples from document
t.grammar =
finder.grammar =
P {
"document",
name = C((1 - S ",]=") ^ 1),
Expand All @@ -22,16 +22,16 @@ t.grammar =
document = V "anything" * Ct(V "codeexample" * (V "anything" * V "codeexample") ^ 0) * V "anything"
}

function t.get_options(e)
function finder.get_options(e)
return e[1]
end

function t.get_content(e)
function finder.get_content(e)
return e[2]
end

function t.get_name()
function finder.get_name()
return "document"
end

return t
return finder

0 comments on commit 07ceb3b

Please sign in to comment.