diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index dcdb5f35..b6ceedb5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -92,7 +92,7 @@ jobs: with: version: 1.6 arch: x64 - - uses: actions/cache@v1 + - uses: actions/cache@v4 env: cache-name: cache-artifacts with: diff --git a/src/precompile.jl b/src/precompile.jl index 922be354..5a80d92d 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -6,6 +6,7 @@ let filename = joinpath(@__DIR__, "literal_parsing.jl") if _has_v1_6_hooks enable_in_core!() Meta.parse("1 + 2") + Meta.parse(SubString("1 + 2")) enable_in_core!(false) end end diff --git a/src/tokenize.jl b/src/tokenize.jl index 6eb76954..0ea9be19 100644 --- a/src/tokenize.jl +++ b/src/tokenize.jl @@ -1339,7 +1339,8 @@ end function simple_hash(str) ind = 1 h = UInt64(0) - while ind <= length(str) + L = min(lastindex(str), MAX_KW_LENGTH) + while ind <= L h = simple_hash(str[ind], h) ind = nextind(str, ind) end