~toastal/nvim-tree-sitter-unicode-conceal
Showing details for patch 01e7ddc6a00aea96cb1e73a9dbb451b7f4ceeb08.
diff -rN -u old-nvim-tree-sitter-unicode-conceal/after/queries/c/highlights.scm new-nvim-tree-sitter-unicode-conceal/after/queries/c/highlights.scm --- old-nvim-tree-sitter-unicode-conceal/after/queries/c/highlights.scm 2024-12-22 10:01:05.585158610 +0000 +++ new-nvim-tree-sitter-unicode-conceal/after/queries/c/highlights.scm 2024-12-22 10:01:05.585158610 +0000 @@ -18,9 +18,16 @@ (binary_expression ("/" @operator (#set! conceal "÷"))) ("->" @operator (#set! conceal "→")) -([(pointer_expression ("*" @operator.c))] (#set! conceal "►")) -((pointer_declarator ("*" @operator.c)) (#set! conceal "◄")) -(pointer_expression ("&" @operator.c) (#set! conceal "※")) +((pointer_expression ("*" @operator)) (#set! conceal "►")) +([(pointer_declarator ("*" @type.c)) + ((parameter_declaration) type: ("*" @type.c)) + ((abstract_pointer_declarator) @type.c) + ] (#set! conceal "◄")) +(pointer_expression ("&" @operator) (#set! conceal "※")) + +(case_statement ("case" @punctuation.delimiter) (#set! conceal "|")) +(case_statement ("default" @punctuation.delimiter) (#set! conceal "⫰")) +(case_statement (":" @punctuation.delimiter) (#set! conceal "⇒")) (((primitive_type) @type.builtin (#eq? @type.builtin "bool")) (#set! conceal "𝔹")) (((primitive_type) @type.builtin (#eq? @type.builtin "int")) (#set! conceal "ℤ"))