From 454c399d3f396a35cc231c316fb9315b2e42f101 Mon Sep 17 00:00:00 2001 From: Gregor Kappler Date: Thu, 29 Sep 2022 14:45:49 +0200 Subject: [PATCH] fix breaking macro for julia 1.8 julia 1.8 --- Project.toml | 4 ++-- src/CombinedParsers.jl | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index db850cc..9032ae1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CombinedParsers" uuid = "5ae71ed2-6f8a-4ed1-b94f-e14e8158f19e" authors = ["Gregor Kappler"] -version = "0.2.1" +version = "0.2.2" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" @@ -21,7 +21,7 @@ Nullables = "1.0.0" TextParse = "0.9, 1.0.0" LazyStrings = "0.1.1" Tries = "0.1.4" -julia = "1.4.2, 1.5, 1.6" +julia = "1.4.2, 1.5, 1.6, 1.7, 1.8" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/src/CombinedParsers.jl b/src/CombinedParsers.jl index ec5f93c..8b023e7 100644 --- a/src/CombinedParsers.jl +++ b/src/CombinedParsers.jl @@ -632,9 +632,7 @@ macro syntax(block) macro $(Symbol(string(name)*"_str"))(x) $name(x) end - global $name = begin - $(expr...) - end + $(expr...) pushfirst!($within_expr, $name) $name end