Skip to content

Commit 88f219e

Browse files
authored
fix syntax for true and false as symbols (#58071)
`isidentifier` already handles these, so this makes no observable difference but I noticed that `keyword_syms` was unexpectedly a `Set{Any}`.
1 parent b422883 commit 88f219e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/show.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,8 +1782,8 @@ end
17821782

17831783
const keyword_syms = Set([
17841784
:baremodule, :begin, :break, :catch, :const, :continue, :do, :else, :elseif,
1785-
:end, :export, :false, :finally, :for, :function, :global, :if, :import,
1786-
:let, :local, :macro, :module, :public, :quote, :return, :struct, :true,
1785+
:end, :export, :var"false", :finally, :for, :function, :global, :if, :import,
1786+
:let, :local, :macro, :module, :public, :quote, :return, :struct, :var"true",
17871787
:try, :using, :while ])
17881788

17891789
function is_valid_identifier(sym)

0 commit comments

Comments
 (0)