Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
languages: Add attribute highlighting in C++ (#47825)
ozacod28e743b4d65f
diff --git a/crates/languages/src/cpp/highlights.scm b/crates/languages/src/cpp/highlights.scmindex 42ac231b0ef..234605409c1 100644--- a/crates/languages/src/cpp/highlights.scm+++ b/crates/languages/src/cpp/highlights.scm@@ -93,8 +93,17 @@type: (primitive_type) @type.builtin(sized_type_specifier) @type.builtin+; GNU __attribute__+(attribute_specifier) @attribute+(attribute_specifier+ (argument_list+ (identifier) @attribute))++; C++11 [[attributes]]+(attribute+ prefix: (identifier) @attribute)(attribute- name: (identifier) @attribute)+ name: (identifier) @attribute)((identifier) @constant.builtin(#match? @constant.builtin "^_*[A-Z][A-Z\\d_]*$"))