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

Showing details for patch 2e9153370231846250ff1de7149c58c880f20784.
2025-01-30 (Thu), 4:52 AM - ᛏᚩᛋᛏᚪᛚ - 2e9153370231846250ff1de7149c58c880f20784

new syntax: qmljs

Summary of changes
1 files added
  • after/queries/qmljs/highlights.scm
1 files modified with 2 lines added and 0 lines removed
  • flake.nix with 2 added and 0 removed lines
diff -rN -u old-nvim-tree-sitter-unicode-conceal/after/queries/qmljs/highlights.scm new-nvim-tree-sitter-unicode-conceal/after/queries/qmljs/highlights.scm
--- old-nvim-tree-sitter-unicode-conceal/after/queries/qmljs/highlights.scm	1970-01-01 00:00:00.000000000 +0000
+++ new-nvim-tree-sitter-unicode-conceal/after/queries/qmljs/highlights.scm	2025-02-21 18:09:49.545815293 +0000
@@ -0,0 +1,27 @@
+;; SPDX-FileCopyrightText 2025 toastal <toastal@posteo.net>
+;; SPDX-License-Identifier: LGPL-2.1-or-later
+; extends
+
+(function_declaration ("function" @keyword.function) (#set! conceal "λ"))
+(return_statement ("return" @keyword.return (#set! conceal "⮡")))
+(arrow_function ("=>" @keyword.function (#set! conceal "⇒")))
+(assignment_expression ("=" @operator.assignment (#set! conceal "≔")))
+
+("&&" @keyword.operator (#set! conceal "∧"))
+("||" @keyword.operator (#set! conceal "∨"))
+("!" @operator (#set! conceal "¬"))
+("==" @operator (#set! conceal "="))
+("!=" @operator (#set! conceal "≠"))
+("<=" @operator (#set! conceal "≤"))
+(">=" @operator (#set! conceal "≥"))
+
+(binary_expression ("-" @operator (#set! conceal "−")))
+(binary_expression ("*" @operator (#set! conceal "×")))
+(binary_expression ("/" @operator (#set! conceal "÷")))
+(unary_expression ("-" @number (#set! conceal "⁻")))
+
+(((type_identifier) @type.builtin (#eq? @type.builtin "bool")) (#set! conceal "𝔹"))
+(((type_identifier) @type.builtin (#eq? @type.builtin "int")) (#set! conceal "ℤ"))
+(((type_identifier) @type.builtin (#eq? @type.builtin "uint")) (#set! conceal "ℕ"))
+(((type_identifier) @type.builtin (#eq? @type.builtin "real")) (#set! conceal "ℝ"))
+(((type_identifier) @type.builtin (#eq? @type.builtin "void")) (#set! conceal "⦰"))
diff -rN -u old-nvim-tree-sitter-unicode-conceal/flake.nix new-nvim-tree-sitter-unicode-conceal/flake.nix
--- old-nvim-tree-sitter-unicode-conceal/flake.nix	2025-02-21 18:09:49.545815293 +0000
+++ new-nvim-tree-sitter-unicode-conceal/flake.nix	2025-02-21 18:09:49.545815293 +0000
@@ -111,6 +111,8 @@
                                  ocaml
                                  ocaml-interface
                                  php
+                                 qmldir
+                                 qmljs
                               ]
                            ))
                            self.packages."${system}"."${name}"