From e45c9b82fc495f8e5a3f34234edd320d4ea93e01 Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Wed, 26 Apr 2023 10:35:04 +0200 Subject: [PATCH] make the global `_token_error_descriptions` variable const --- src/kinds.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kinds.jl b/src/kinds.jl index d9967e90..60e2979f 100644 --- a/src/kinds.jl +++ b/src/kinds.jl @@ -1060,7 +1060,7 @@ function untokenize(k::Kind; unique=true) end # Error kind => description -_token_error_descriptions = Dict{Kind, String}( +const _token_error_descriptions = Dict{Kind, String}( K"ErrorEofMultiComment" => "unterminated multi-line comment #= ... =#", K"ErrorInvalidNumericConstant" => "invalid numeric constant", K"ErrorHexFloatMustContainP" => "hex float literal must contain `p` or `P`",