Skip to content

Commit

Permalink
set Julia compatability to 1.6 and fix compat
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Feb 17, 2024
1 parent 89ed960 commit 451034f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
fail-fast: false
matrix:
version:
- '1.0'
- '1.10'
- '1.6'
- '1'
- 'nightly'
os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ JuliaSyntax = "70703baa-626e-46a2-a12c-08ffd08c73b4"
[compat]
Compat = "3.47.0, 4.10.0"
JuliaSyntax = "0.4.8"
julia = "1"
julia = "1.6"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
3 changes: 2 additions & 1 deletion src/CodeSearch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ Base.findall(needle::Pattern, haystack::AbstractString) = indices.(eachmatch(nee
function Base.show(io::IO, m::Pattern)
print(io, "j\"")
str = sprint(print, Expr(m._internal.syntax_node))
str = replace(str, '*' => "\\*", string(m._internal.wildcard_symbol) => '*')
str = replace(str, '*' => "\\*")
str = replace(str, string(m._internal.wildcard_symbol) => '*')
print(io, str)
print(io, "\"")
end
Expand Down

0 comments on commit 451034f

Please # to comment.