diff --git a/Project.toml b/Project.toml index f6b0d0b..d6e5d7f 100644 --- a/Project.toml +++ b/Project.toml @@ -8,9 +8,9 @@ DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" [compat] -DataStructures = "0.17, 0.18" -OrderedCollections = "1.3" -julia = "^1.5" +DataStructures = "0.18" +OrderedCollections = "1" +julia = "1.6" [extras] Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" diff --git a/src/printing.jl b/src/printing.jl index 29830f3..d785b32 100644 --- a/src/printing.jl +++ b/src/printing.jl @@ -69,7 +69,11 @@ function _print_current(printer, n, c, e, trav, comments) if comments nc = sprint(nodecommshow, n, context=printer.io) if !isempty(nc) - paddedprint(printer, ' ' * nc, color=:light_black, italic=true) + @static if VERSION ≥ v"1.10" + paddedprint(printer, ' ' * nc, color=:light_black, italic=true) + else + paddedprint(printer, ' ' * nc, color=:light_black) + end end end gap = repeat(' ', clamp(length(nr)-1, 0, 2))