================
@@ -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);
+    for (const auto ModuleLoc : D->getIdentifierLocs()) {
+      H.addToken(ModuleLoc, HighlightingKind::Namespace)
+          .addModifier(HighlightingModifier::DependentName);
----------------
Decodetalkers wrote:

I just think the name name maybe good, because they are module.. I am not 
familiar with this part. I will delete them

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