halfbrained / cuda_lsp

LSP Client plugin for CudaText
6 stars 4 forks source link

here is some interesting post about LSP stuff #98

Closed Alexey-T closed 3 years ago

Alexey-T commented 3 years ago

https://kate-editor.org/post/2021/2021-06-21-dart-support/ maybe you will find smth good for us. :)

halfbrained commented 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

Alexey-T commented 3 years ago

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'.

Alexey-T commented 3 years ago

(but I think semantic hilight will be slow - Cud will have LOT of ed.attr attribs)

halfbrained commented 3 years ago

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

Alexey-T commented 3 years ago

so linked post is Not about 'semantic hilite'. good. then we don't need 'simple hilite'.