microsoft/language-server-protocol

Define a protocol for syntax tokens

开放

#1,063 创建于 2020年8月7日

 (7 条评论) (0 个反应) (0 位负责人)HTML (956 个派生)batch import
help wantedidea

仓库指标

星标
 (12,810 个星标)
PR 合并指标
 (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.

贡献者指南