tree-sitter-cpp icon indicating copy to clipboard operation
tree-sitter-cpp copied to clipboard

Capital letters break hexadecimal, binary numeric literals

Open jinu-jang opened this issue 3 years ago • 0 comments

a = 0b001101 and a = 0x3fff are parsed appropriately with the binary and hexadecimal showing up as a numeric literal.

However, a = 0B001101 and a = 0X3FFF will show the beginning 0 as a numeric, and the rest will break.

jinu-jang avatar Apr 05 '21 22:04 jinu-jang