Skip to content

Commit 22cfa2b

Browse files
JuliaSyntax tokenize.jl: don‘t hardcode unicode ops range (#60198)
There are very nice `(BEGIN|END)_UNICODE_OPS` kinds; they should be used! --- Ported from JuliaLang/JuliaSyntax.jl#404; thanks are due to @c42f for the notification and instructions on how to move this.
1 parent 2be8847 commit 22cfa2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JuliaSyntax/src/julia/tokenize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function optakessuffix(k)
173173
k == K"!" ||
174174
k == K".'" ||
175175
k == K"->" ||
176-
K"¬" <= k <= K""
176+
K"BEGIN_UNICODE_OPS" <= k <= K"END_UNICODE_OPS"
177177
)
178178
end
179179

0 commit comments

Comments
 (0)