From 31ae0f66ada8ced308cafe8e7492d6915d607822 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 30 May 2024 02:50:28 +0300 Subject: [PATCH] fixup! move lpeg --- packages/bibtex/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/bibtex/init.lua b/packages/bibtex/init.lua index 5e03a2f81..87801b58d 100644 --- a/packages/bibtex/init.lua +++ b/packages/bibtex/init.lua @@ -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