Skip to content

Commit

Permalink
make the global _token_error_descriptions variable const (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Carlsson authored Apr 26, 2023
1 parent 7c16f1b commit 52a976e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kinds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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`",
Expand Down

0 comments on commit 52a976e

Please sign in to comment.