[clangd] Support multiline semantic tokens
authorKadir Cetinkaya <kadircet@google.com>
Wed, 15 Jun 2022 13:44:09 +0000 (15:44 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 29 Jun 2022 11:49:03 +0000 (13:49 +0200)
commit333620d37a26949e9f66c823425cf9a2065e3890
treef94661429c0409b229133934925f80ba7573437c
parent3c16fb3ab34d51c0df9512c38093d1c5c8dd6e79
[clangd] Support multiline semantic tokens

Per LSP, multiline tokens should be handled as if they end at the end
of the line starting the token (there's also a capability to enable them, but
that's an adventure for a different day).

Fixes https://github.com/clangd/clangd/issues/1145

Differential Revision: https://reviews.llvm.org/D127856
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/SemanticHighlighting.cpp
clang-tools-extra/clangd/SemanticHighlighting.h
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp