================
@@ -582,36 +582,49 @@ class CollectExtraHighlightings
     return true;
   }
 
-  bool VisitTagDecl(TagDecl *D) {
-    for (TemplateParameterList *TPL : D->getTemplateParameterLists())
-      H.addAngleBracketTokens(TPL->getLAngleLoc(), TPL->getRAngleLoc());
+  bool VisitImportDecl(const ImportDecl *D) {
+    H.addToken(D->getLocation(), HighlightingKind::Keyword);
----------------
HighCommander4 wrote:

We have an existing case of producing a semantic token for context-sensitive 
keywords: the `override` and `final` keywords, 
[here](https://searchfox.org/llvm/rev/e0cc08dc1121126392df2b832ee060a60cca6dc3/clang-tools-extra/clangd/SemanticHighlighting.cpp#961-963).

In that case, the token kind we use is `HighlightingKind::Modifier`. Would it 
make sense to reuse that here?

https://github.com/llvm/llvm-project/pull/204511
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to