Skip to content

Commit

Permalink
fixup! move lpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed May 30, 2024
1 parent 61ca2a5 commit 31ae0f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/bibtex/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ local epnf = require("epnf")

local Bibliography

local identifier = (SILE.parserBits.identifier + lpeg.S":-")^1

-- luacheck: push ignore
-- stylua: ignore start
---@diagnostic disable: undefined-global, unused-local, lowercase-global
local bibtexparser = epnf.define(function (_ENV)
local identifier = (SILE.parserBits.identifier + S":-")^1
local balanced = C{ "{" * P" "^0 * C(((1 - S"{}") + V(1))^0) * "}" } / function (...) local t={...}; return t[2] end
local doubleq = C( P'"' * C(((1 - S'"\r\n\f\\') + (P'\\' * 1)) ^ 0) * '"' )
local _ = WS^0
Expand Down

0 comments on commit 31ae0f6

Please sign in to comment.