We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
crystal docs
1 parent eb4fa17 commit 3c7ed65Copy full SHA for 3c7ed65
src/compiler/crystal/tools/doc/highlighter.cr
@@ -32,12 +32,7 @@ module Crystal::Doc::Highlighter
32
when :CHAR
33
highlight token.raw, "s", io
34
when :SYMBOL
35
- sym = token.value.to_s
36
- if Symbol.needs_quotes?(sym)
37
- highlight HTML.escape(%(:#{sym.inspect})), "n", io
38
- else
39
- highlight ":#{sym}", "n", io
40
- end
+ highlight HTML.escape(token.raw), "n", io
41
when :CONST, :"::"
42
highlight token, "t", io
43
when :DELIMITER_START
0 commit comments