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

Showing details for patch 0c0e55a3488530b068ac34af8d29da3283218614.
2024-04-21 (Sun), 5:07 PM - toastal - 0c0e55a3488530b068ac34af8d29da3283218614

add erlang

Summary of changes
1 files added
  • after/queries/erlang/highlights.scm
1 files modified with 1 lines added and 0 lines removed
  • flake.nix with 1 added and 0 removed lines
diff -rN -u old-nvim-tree-sitter-unicode-conceal/after/queries/erlang/highlights.scm new-nvim-tree-sitter-unicode-conceal/after/queries/erlang/highlights.scm
--- old-nvim-tree-sitter-unicode-conceal/after/queries/erlang/highlights.scm	1970-01-01 00:00:00.000000000 +0000
+++ new-nvim-tree-sitter-unicode-conceal/after/queries/erlang/highlights.scm	2024-05-19 11:57:54.606352422 +0000
@@ -0,0 +1,30 @@
+;; SPDX-FileCopyrightText 2024 toastal <toastal@posteo.net>
+;; SPDX-License-Identifier: LGPL-2.1-or-later
+; extends
+
+("fun" @keyword.function @conceal (#set! conceal "λ"))
+("end" @keyword.function @conceal (#set! conceal "◊"))
+("->" @operator @conceal (#set! conceal "→"))
+("<-" @operator @conceal (#set! conceal "←"))
+("=>" @operator @conceal (#set! conceal "⇒"))
+("<=" @operator @conceal (#set! conceal "⇐"))
+("=" @operator @conceal (#set! conceal "≕"))
+(":=" @operator @conceal (#set! conceal "≔"))
+("?=" @operator @conceal (#set! conceal "≟"))
+
+("==" @operator @conceal (#set! conceal "="))
+("/=" @operator @conceal (#set! conceal "≠"))
+("=:=" @operator @conceal (#set! conceal "≡"))
+("=/=" @operator @conceal (#set! conceal "≢"))
+("=<" @operator @conceal (#set! conceal "≤"))
+(">=" @operator @conceal (#set! conceal "≥"))
+("*" @operator @conceal (#set! conceal "×"))
+; welp… upstream parser is broken currently
+(ERROR ("/" @operator @conceal) !arity (#set! conceal "÷"))
+("not" @operator @conceal (#set! conceal "¬"))
+("and" @operator @conceal (#set! conceal "∧"))
+("or" @operator @conceal (#set! conceal "∨"))
+("xor" @operator @conceal (#set! conceal "⊻"))
+
+(type_sig (expr_args args: (call (atom) @type.definition @conceal (#eq? @type.definition "integer"))) (#set! conceal "ℤ"))
+(type_sig (pipe lhs: (atom) @lhs rhs: (atom) @rhs (#any-of? @lhs "true" "false") (#any-of? @rhs "true" "false") (#not-eq? @lhs @rhs)) @boolean @conceal (#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	2024-05-19 11:57:54.606352422 +0000
+++ new-nvim-tree-sitter-unicode-conceal/flake.nix	2024-05-19 11:57:54.606352422 +0000
@@ -64,6 +64,7 @@
                   trouble-nvim
                   (nvim-treesitter.withPlugins (
                     plugins: with plugins; [
+                      erlang
                       fish
                       lua
                       nickel