Skip to content

Commit

Permalink
Change export -> reexport to fix parsing issue, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Apr 14, 2019
1 parent 753f046 commit b4753bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["ScottPJones <[email protected]>"]
keywords = ["Strings", "Characters", "Formatting", "Intern", "Unicode", "Regex"]
license = "MIT"
uuid = "7bddbee9-b4ee-5d4f-bf0b-c84b4398bbf6"
version = "0.2.0"
version = "0.2.1"

[deps]
ModuleInterfaceTools = "5cb8414e-7aab-5a03-a681-351269c074bf"
Expand Down
12 changes: 3 additions & 9 deletions src/Strs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ __precompile__(true)
"""
Strs package
Copyright 2017-018 Gandalf Software, Inc., Scott P. Jones
Copyright 2017-2019 Gandalf Software, Inc., Scott P. Jones
Licensed under MIT License, see LICENSE.md
"""
module Strs

using ModuleInterfaceTools
using ModuleInterfaceTools: m_eval
export @api, V6_COMPAT
export @api

using PCRE2

Expand All @@ -25,12 +24,7 @@ export @i_str, @I_str, intern
macro i_str(str) ; Expr(:call, :intern, interpolated_parse(str, StrBase._str)) ; end
macro I_str(str) ; Expr(:call, :intern, interpolated_parse(str, StrBase._str, true)) ; end

const curmod = @static V6_COMPAT ? current_module() : @__MODULE__

# Need to fix ModuleInterfaceTools to do this!
for mod in (StrRegex, StrLiterals), grp in (:modules, :public, :public!)
m_eval(curmod, Expr( :export, getfield(m_eval(mod, :__api__), grp)...))
end
@api reexport StrRegex, StrLiterals

@api freeze

Expand Down

0 comments on commit b4753bb

Please sign in to comment.