Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,8 @@

let col = l.at(1)
assert(
type(col) == color or type(col) == gradient or type(col) == pattern,
message: "codly: the type of a `highlighted-lines` color must be either a color, a gradient, or a pattern, found: " + str(type(col))
type(col) == color or type(col) == gradient or type(col) == tiling,
message: "codly: the type of a `highlighted-lines` color must be either a color, a gradient, or a tiling, found: " + str(type(col))
)

(ln, col)
Expand Down Expand Up @@ -1324,7 +1324,7 @@

let fill = if type(lang-fill) == function {
(lang-fill)((name: name, icon: icon, color: color))
} else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == pattern {
} else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == tiling {
lang-fill
} else {
color
Expand Down Expand Up @@ -1390,7 +1390,7 @@

let fill = if type(lang-fill) == function {
(lang-fill)((name: alias, icon: [], color: default-color))
} else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == pattern {
} else if type(lang-fill) == color or type(lang-fill) == gradient or type(lang-fill) == tiling {
lang-fill
} else {
default-color
Expand Down