This is getting close now to semantic tokens in nushell. This PR finds tokens on the server side and starts numbering them from 0. Each number is a different type so the syntax highlighting is different. What needs to happen next is to consume data from nushell and assign these enums (TokenTypes and TokenModifiers) to each ast item. We need to be sure to use the known token types otherwise we'll have to come up with separate colors.
Note the log below where it says "word" - this is as tokens are being identified and labeled. This is far from complete.
Semantic Tokens are recognized now. Not sure coloring is working. Also, it updates way too frequently. I have some code in the wrong place I guess.
New
Old
This is getting close now to semantic tokens in nushell. This PR finds tokens on the server side and starts numbering them from 0. Each number is a different type so the syntax highlighting is different. What needs to happen next is to consume data from nushell and assign these enums (TokenTypes and TokenModifiers) to each ast item. We need to be sure to use the known token types otherwise we'll have to come up with separate colors.
Note the log below where it says "word" - this is as tokens are being identified and labeled. This is far from complete.