How to run lexer.Tokenise() on line by line? #1036
-
I'm writing a toy editor, using chroma for coloring and giving the editor some understanding of what is beneath the cursor. For example: When the user presses a key, I would like to run lexer.Tokenise() on just the current line that is changed and provide the current start state of the line, IE is the line inside a multi-line comment etc. Can this be done with chroma? If yes, how? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for the discussion, unfortunately this is not possible currently. |
Beta Was this translation helpful? Give feedback.
-
Ok. Thanks for a quick response. |
Beta Was this translation helpful? Give feedback.
Thanks for the discussion, unfortunately this is not possible currently.