Closed Alexey-T closed 3 years ago
Will syntax highlighting from LSP be useful? Specification doesn't look too bad, but CudaText already has like a billion lexers :), so I thought it is not needed
it is not needed. LSP has another feature though. semantic hilight. the same IDs are colored with single color. Cud users didn't ask it but will be 'nice to have'.
(but I think semantic hilight will be slow - Cud will have LOT of ed.attr attribs)
Hm... the linked post talks about semantic tokens, it just gives a list of tokens with their types:
type
class
enum
interface
struct
typeParameter
parameter
variable
property
enumMember
event
function
method
macro
keyword
modifier
comment
string
number
regexp
operator
and a modifiers:
declaration
definition
readonly
static
deprecated
abstract
async
modification
documentation
defaultLibrary
To me it seems like it is only useful for coloring text ("syntax highlighting", an alternative for lexers), so I'm not sure what this is about:
semantic hilight. the same IDs are colored with single color
so linked post is Not about 'semantic hilite'. good. then we don't need 'simple hilite'.
https://kate-editor.org/post/2021/2021-06-21-dart-support/ maybe you will find smth good for us. :)