microsoft/language-server-protocol

Define a protocol for syntax tokens

オープン

#1,063 opened on 2020/08/07

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)HTML (956 件のフォーク)batch import
help wantedidea

Repository metrics

Stars
 (12,810 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Is my reading correct, that semantic tokens only add additional information to tokens? Can we trust that the clients will render keywords correctly, if they already have a syntax highlighter (frequently regexp based).

If that's the case, should there be an option to "unset" a type. Just as an example, if you have #ifdefs you could think of giving the LSP server the option of removing syntax coloring from inactive code segments by giving it the token-type None.

コントリビューターガイド