[PATCH] D67290: [clangd] Add a new highlighting kind for typedefs

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 9 07:28:03 PDT 2019


ilya-biryukov added inline comments.


================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:530
+  case HighlightingKind::Typedef:
+    return "entity.name.type.typedef.cpp";
   case HighlightingKind::Namespace:
----------------
hokein wrote:
> ilya-biryukov wrote:
> > Not sure what the rules for the scope names are, happy to change if I'm doing it wrong
> I think the current name is fine, just checked the name for this type in vscode highlighting configs, but didn't find a particular name for this type (my guess is that regex-based highlighting is not able to catch this case).
Ack. Keeping as is, thanks for taking a look.
Is there a way for us to provide a custom color for this in our extension? Or would we just revert to the default color for `entity.name.type`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67290/new/

https://reviews.llvm.org/D67290





More information about the cfe-commits mailing list