Space key from tree

Hi Marijn,
I have been retrieving tokens from syntax tree for decoration purposes. Is there any way to know if a user has entered space key or tab key? Would be helpful.

Thanks.

The syntax tree will generally not have information about what kind of whitespace is used, but you can access the current document at a position near some node to figure out what kind of characters are present three.