fix(editor): preserve C++ namespace colors for library symbols (#6133)

clangd marks std and other standard-library namespaces with the defaultLibrary modifier, so the generic builtin (Predefined symbol) class overrode the Namespace colour. A C++ semantic hook drops the builtin class for namespace tokens only; other symbol kinds, modifiers and languages keep their styling.

Fixes #6123

Co-authored-by: txdywmwddhxs <[email protected]>
Цей коміт міститься в:
txdywmwddhxs authored and GitHub committed 2026-11-26 18:02:58 +08:00
1 джерело 30291971e1
коміт 2413cc4b43
6 files changed
+102

No files matched your search

+9
Переглянути файл
@@ -0,0 +1,9 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
</head>
<body>
<script type="module" src="./cppNamespaceStyle.fixture.ts"></script>
</body>
</html>