[clangd] Added special HighlightingKind for function parameters.
authorJohan Vikstrom <jvikstrom@google.com>
Mon, 19 Aug 2019 07:51:39 +0000 (07:51 +0000)
committerJohan Vikstrom <jvikstrom@google.com>
Mon, 19 Aug 2019 07:51:39 +0000 (07:51 +0000)
commit17587b36d1928c3399d4d9af6daa052c0cdd6327
tree2b196b25d654af654b834477b958448d77d5cf8a
parent21599876be328ff6b5c6cf09544ade7e337cb48d
[clangd] Added special HighlightingKind for function parameters.

Summary: This means that function parameters are no longer highlighted as variable.other.cpp but instead as variable.parameter.cpp which is the more "correct" TextMate scope for them.

Reviewers: hokein, ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66335

llvm-svn: 369238
clang-tools-extra/clangd/SemanticHighlighting.cpp
clang-tools-extra/clangd/SemanticHighlighting.h
clang-tools-extra/clangd/test/semantic-highlighting.test
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp