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

~toastal/nvim-tree-sitter-unicode-conceal/after/queries/qmljs/highlights.scm
 ..
0 ;; SPDX-FileCopyrightText 2025 toastal <toastal@posteo.net>
1 ;; SPDX-License-Identifier: LGPL-2.1-or-later
2 ; extends
3
4 (function_declaration ("function" @keyword.function) (#set! conceal "λ"))
5 (return_statement ("return" @keyword.return (#set! conceal "⮡")))
6 (arrow_function ("=>" @keyword.function (#set! conceal "⇒")))
7 (assignment_expression ("=" @operator.assignment (#set! conceal "≔")))
8
9 ("&&" @keyword.operator (#set! conceal "∧"))
10 ("||" @keyword.operator (#set! conceal "∨"))
11 ("!" @operator (#set! conceal "¬"))
12 ("==" @operator (#set! conceal "="))
13 ("!=" @operator (#set! conceal "≠"))
14 ("<=" @operator (#set! conceal "≤"))
15 (">=" @operator (#set! conceal "≥"))
16
17 (binary_expression ("-" @operator (#set! conceal "−")))
18 (binary_expression ("*" @operator (#set! conceal "×")))
19 (binary_expression ("/" @operator (#set! conceal "÷")))
20 (unary_expression ("-" @number (#set! conceal "⁻")))
21
22 (((type_identifier) @type.builtin (#eq? @type.builtin "bool")) (#set! conceal "𝔹"))
23 (((type_identifier) @type.builtin (#eq? @type.builtin "int")) (#set! conceal "ℤ"))
24 (((type_identifier) @type.builtin (#eq? @type.builtin "uint")) (#set! conceal "ℕ"))
25 (((type_identifier) @type.builtin (#eq? @type.builtin "real")) (#set! conceal "ℝ"))
26 (((type_identifier) @type.builtin (#eq? @type.builtin "void")) (#set! conceal "⦰"))