~toastal/nvim-tree-sitter-unicode-conceal

Showing details for patch 01e7ddc6a00aea96cb1e73a9dbb451b7f4ceeb08.
2024-08-11 (Sun), 1:37 PM - toastal - 01e7ddc6a00aea96cb1e73a9dbb451b7f4ceeb08

more C

Summary of changes
1 files modified with 10 lines added and 3 lines removed
  • after/queries/c/highlights.scm with 10 added and 3 removed lines
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 "ℤ"))