Skip to content

Commit

Permalink
chore(ci): Fix lint errors in features.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlcctrlv committed Jul 31, 2020
1 parent 24dc59a commit c03a4be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

local lpeg = require("lpeg")

local R, S, P, C, V = lpeg.R, lpeg.S, lpeg.P, lpeg.C, lpeg.V
local Cf, Ct, Cc = lpeg.Cf, lpeg.Ct, lpeg.Cc
local R, S, P, C = lpeg.R, lpeg.S, lpeg.P, lpeg.C
local Cf, Ct = lpeg.Cf, lpeg.Ct

local opentype = { -- Mapping of opentype features to friendly names
Ligatures = {
Expand Down Expand Up @@ -117,8 +117,8 @@ local fontspecsafe = R('AZ', 'az', '09') + P':'
local fontspecws = SILE.parserBits.whitespace^0
local fontspecsep = P',' * fontspecws
local fontspecname = C(fontspecsafe^1)
local fontspeclist = fontspecws * P'{' *
Ct(fontspecws * fontspecname *
local fontspeclist = fontspecws * P'{' *
Ct(fontspecws * fontspecname *
(fontspecsep * fontspecname * fontspecws)^0) *
P'}' * fontspecws

Expand Down Expand Up @@ -177,7 +177,7 @@ local parsefontfeatures = function (options, _)

SU.debug("features", string.format("Built feats: %s", SU.dumpString(false, feats)))

for kk, vv in pairs(feats) do
for _, vv in pairs(feats) do
local pk, pv = _parsefontfeaturevalue(k, vv)
t[pk] = pv
end
Expand Down Expand Up @@ -210,7 +210,7 @@ local removefontfeatures = function (options, _)
end

SILE.settings.set("font.features", table2featurestring(t))
SU.debug("features", string.format("Features were: %s\nRemoved features: %s\nFeatures are now: %s",
SU.debug("features", string.format("Features were: %s\nRemoved features: %s\nFeatures are now: %s",
SU.dumpString(false, t_cur), SU.dumpString(false, t_rm),
SU.dumpString(false, t)))
end
Expand Down

0 comments on commit c03a4be

Please sign in to comment.