Skip to content

Commit 3e08cb1

Browse files
authored
deps: update JuliaSyntax to v1.0.0 (#57188)
This pr: - Update JuliaSyntax to v1.0.0 - Update JuliaSyntaxHighlighting to latest Note: `JuliaSyntax.jl` contains some breaking changes in v1.0.0, so we need to update `JuliaSyntaxHighlighting.jl` at the same time. Close #57166
1 parent 9777a33 commit 3e08cb1

File tree

11 files changed

+15
-13
lines changed

11 files changed

+15
-13
lines changed

deps/JuliaSyntax.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
JULIASYNTAX_BRANCH = main
2-
JULIASYNTAX_SHA1 = dfd1d69b153eb119873035e62993a109b27192f0
2+
JULIASYNTAX_SHA1 = 2e965a159dd9f87d216d2d50ecbd2ed4f9af2c5a
33
JULIASYNTAX_GIT_URL := https://github.com/JuliaLang/JuliaSyntax.jl.git
44
JULIASYNTAX_TAR_URL = https://api.github.com/repos/JuliaLang/JuliaSyntax.jl/tarball/$1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
40d7bcc6e5741d50a457ace2ca8b2c0c
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b9429b90a28460ef0272cd42a5c221629c6d60221ed088ae3e591cc3d8dbdec32788074397419e58b611bda7df32c7379ec7fafeead7056ed9665591474cec5d

deps/checksums/JuliaSyntax-dfd1d69b153eb119873035e62993a109b27192f0.tar.gz/md5

-1
This file was deleted.

deps/checksums/JuliaSyntax-dfd1d69b153eb119873035e62993a109b27192f0.tar.gz/sha512

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
187f155c32a79f57a89e31e672d2d8c5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
69347af996d77b88b5e5b6e44ff046e9197775a66802a0da6fb5fcbf9e5ca533566955c8435bc25490f6ca0c002b4c1effcddaf932b7eb91e00a8f99554b7b8d

deps/checksums/JuliaSyntaxHighlighting-eb8097c5f1dbfca80b5e6664af031ff1fe0904af.tar.gz/md5

-1
This file was deleted.

deps/checksums/JuliaSyntaxHighlighting-eb8097c5f1dbfca80b5e6664af031ff1fe0904af.tar.gz/sha512

-1
This file was deleted.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
JULIASYNTAXHIGHLIGHTING_BRANCH = main
2-
JULIASYNTAXHIGHLIGHTING_SHA1 = eb8097c5f1dbfca80b5e6664af031ff1fe0904af
2+
JULIASYNTAXHIGHLIGHTING_SHA1 = 2680c8bde1aa274f25d7a434c645f16b3a1ee731
33
JULIASYNTAXHIGHLIGHTING_GIT_URL := https://github.com/julialang/JuliaSyntaxHighlighting.jl.git
44
JULIASYNTAXHIGHLIGHTING_TAR_URL = https://api.github.com/repos/julialang/JuliaSyntaxHighlighting.jl/tarball/$1

test/syntax.jl

+9-7
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ add_method_to_glob_fn!()
377377
@test_parseerror "function finally() end"
378378

379379
# PR #16170
380-
@test Meta.lower(Main, Meta.parse("true(x) = x")) == Expr(:error, "invalid function name \"true\"")
381-
@test Meta.lower(Main, Meta.parse("false(x) = x")) == Expr(:error, "invalid function name \"false\"")
380+
@test Meta.lower(Main, Meta.parse("true(x) = x")) == Expr(:error, "\"true\" is not a valid function argument name")
381+
@test Meta.lower(Main, Meta.parse("false(x) = x")) == Expr(:error, "\"false\" is not a valid function argument name")
382382

383383
# issue #16355
384384
@test Meta.lower(Main, :(f(d:Int...) = nothing)) == Expr(:error, "\"d:Int\" is not a valid function argument name")
@@ -925,8 +925,8 @@ g21054(>:) = >:2
925925
@test g21054(-) == -2
926926

927927
# issue #21168
928-
@test Meta.lower(Main, :(a.[1])) == Expr(:error, "invalid syntax \"a.[1]\"")
929-
@test Meta.lower(Main, :(a.{1})) == Expr(:error, "invalid syntax \"a.{1}\"")
928+
@test_broken Meta.lower(Main, :(a.[1])) == Expr(:error, "invalid syntax \"a.[1]\"")
929+
@test_broken Meta.lower(Main, :(a.{1})) == Expr(:error, "invalid syntax \"a.{1}\"")
930930

931931
# Issue #21225
932932
let abstr = Meta.parse("abstract type X end")
@@ -1496,8 +1496,8 @@ end
14961496

14971497
# issue #26739
14981498
let exc = try Core.eval(@__MODULE__, :(sin.[1])) catch exc ; exc end
1499-
@test exc isa ErrorException
1500-
@test startswith(exc.msg, "syntax: invalid syntax \"sin.[1]\"")
1499+
@test_broken exc isa ErrorException
1500+
@test_broken startswith(exc.msg, "syntax: invalid syntax \"sin.[1]\"")
15011501
end
15021502

15031503
# issue #26873
@@ -2454,7 +2454,9 @@ end
24542454
@test_throws MethodError @m37134()(1.0) == 62
24552455

24562456
macro n37134()
2457-
:($(esc(Expr(:tuple, Expr(:..., :x))))->$(esc(:x)))
2457+
quote
2458+
((x...,)) -> (x)
2459+
end |> esc
24582460
end
24592461
@test @n37134()(2,1) === (2,1)
24602462

0 commit comments

Comments
 (0)