microsoft/language-server-protocol

Define a protocol for syntax tokens

Open

#1,063 建立於 2020年8月7日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)HTML (956 fork)batch import
help wantedidea

倉庫指標

Star
 (12,810 star)
PR 合併指標
 (平均合併 19小時 29分鐘) (30 天內合併 12 個 PR)

描述

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.

貢獻者指南