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

~toastal/nvim-tree-sitter-unicode-conceal/after/queries/c/highlights.scm
 ..
0 ;; SPDX-FileCopyrightText 2024 toastal <toastal@posteo.net>
1 ;; SPDX-License-Identifier: LGPL-2.1-or-later
2 ; extends
3
4 (return_statement ("return" @keyword.return (#set! conceal "⮡")))
5 (assignment_expression ("=" @operator.assignment (#set! conceal "≔")))
6
7 ("&&" @keyword.operator (#set! conceal "∧"))
8 ("||" @keyword.operator (#set! conceal "∨"))
9 ("!" @operator (#set! conceal "¬"))
10 ("==" @operator (#set! conceal "="))
11 ("!=" @operator (#set! conceal "≠"))
12 ("<=" @operator (#set! conceal "≤"))
13 (">=" @operator (#set! conceal "≥"))
14
15 (binary_expression ("-" @operator (#set! conceal "−")))
16 (binary_expression ("*" @operator (#set! conceal "×")))
17 (binary_expression ("/" @operator (#set! conceal "÷")))
18
19 ("->" @operator (#set! conceal "→"))
20 ((pointer_expression ("*" @operator)) (#set! conceal "►"))
21 ([(pointer_declarator ("*" @type.c))
22 ((parameter_declaration) type: ("*" @type.c))
23 ((abstract_pointer_declarator) @type.c)
24 ] (#set! conceal "◄"))
25 (pointer_expression ("&" @operator) (#set! conceal "※"))
26
27 (case_statement ("case" @punctuation.delimiter) (#set! conceal "|"))
28 (case_statement ("default" @punctuation.delimiter) (#set! conceal "⫰"))
29 (case_statement (":" @punctuation.delimiter) (#set! conceal "⇒"))
30
31 (((primitive_type) @type.builtin (#eq? @type.builtin "bool")) (#set! conceal "𝔹"))
32 (((primitive_type) @type.builtin (#eq? @type.builtin "int")) (#set! conceal "ℤ"))
33 (((primitive_type) @type.builtin (#eq? @type.builtin "uint")) (#set! conceal "ℕ"))
34 (((primitive_type) @type.builtin (#eq? @type.builtin "void")) (#set! conceal "⦰"))
35 ((null) @constant.builtin (#set! conceal "∅"))
36
37 ((call_expression function: (identifier) @function.call.c (#eq? @function.call.c "floor")) (#set! conceal "⌊"))
38 ((call_expression function: (identifier) @function.call.c (#eq? @function.call.c "ceil")) (#set! conceal "⌈"))
39 ((call_expression function: (identifier) @function.call.c (#eq? @function.call.c "round")) (#set! conceal "⁅"))
40