tree-sitter-haskell
tree-sitter-haskell copied to clipboard
Combining characters in identifiers are not parsed correctly
An objectionable file and the treesitter tree:
a = () -- single 'a'
â = () -- single 'a with circumflex' character
â = () -- single 'a' with combining circumflex u770
function [0, 0] - [0, 6]
name: variable [0, 0] - [0, 1]
rhs: exp_literal [0, 4] - [0, 6]
con_unit [0, 4] - [0, 6]
comment [0, 7] - [0, 20]
function [1, 0] - [1, 7]
name: variable [1, 0] - [1, 2]
rhs: exp_literal [1, 5] - [1, 7]
con_unit [1, 5] - [1, 7]
comment [1, 8] - [1, 47]
function [2, 0] - [2, 8]
name: variable [2, 0] - [2, 1]
ERROR [2, 1] - [2, 3]
ERROR [2, 1] - [2, 3]
rhs: exp_literal [2, 6] - [2, 8]
con_unit [2, 6] - [2, 8]
comment [2, 9] - [2, 53]
Thank you for all the hard work maintaining this library btw!