0 |
;; SPDX-FileCopyrightText 2023–2024 toastal <toastal@posteo.net> |
1 |
;; SPDX-License-Identifier: LGPL-2.1-or-later |
2 |
; extends |
3 |
|
4 |
("function" @keyword.function (#set! conceal "λ")) |
5 |
("end" @keyword.function (#set! conceal "◊")) |
6 |
("return" @keyword.return (#set! conceal "⮡")) |
7 |
(assignment_statement ("=" @operator.assignment (#set! conceal "≔"))) |
8 |
(field ("=" @punctuation.delimeter (#set! conceal "≕"))) |
9 |
|
10 |
("and" @keyword.operator (#set! conceal "∧")) |
11 |
("or" @keyword.operator (#set! conceal "∨")) |
12 |
("not" @operator (#set! conceal "¬")) |
13 |
|
14 |
("==" @operator (#set! conceal "=")) |
15 |
("~=" @operator (#set! conceal "≠")) |
16 |
("<=" @operator (#set! conceal "≤")) |
17 |
(">=" @operator (#set! conceal "≥")) |
18 |
|
19 |
("-" @operator (#set! conceal "−")) |
20 |
("*" @operator (#set! conceal "×")) |
21 |
("/" @operator (#set! conceal "÷")) |
22 |
(unary_expression ("-" @number) (#set! conceal "⁻")) |
23 |
|
24 |
(".." @operator (#set! conceal "‥")) |
25 |
|
26 |
((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @function.call) |
27 |
(#eq? @variable "math") (#eq? @field "ceil")) |
28 |
(#set! conceal "⌈")) |
29 |
((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @function.call) |
30 |
(#eq? @variable "math") (#eq? @field "floor")) |
31 |
(#set! conceal "⌊")) |
32 |
((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @function.call) |
33 |
(#eq? @variable "math") (#eq? @field "round")) |
34 |
(#set! conceal "⁅")) |
35 |
((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @constant) |
36 |
(#eq? @variable "math") (#eq? @field "pi")) |
37 |
(#set! conceal "π")) |
38 |
((((dot_index_expression table: (identifier) @variable field: (identifier) @field) @function.call) |
39 |
(#eq? @variable "math") (#eq? @field "sqrt")) |
40 |
(#set! conceal "√")) |
41 |
|
42 |
((nil) @constant.builtin (#set! conceal "∅")) |