-
Notifications
You must be signed in to change notification settings - Fork 0
/
cal.vim
74 lines (57 loc) · 1.44 KB
/
cal.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
" Author: Samuele Giraudo
" Creation: mar. 2022
" Modifications: mar. 2022, may 2022, aug. 2022
" Syntax file of the Calimba language.
" This file has to be at ~/.vim/syntax/cal.vim
if exists("b:current_syntax")
finish
endif
" Turns off spell checking.
set nospell
" Structure keywords.
syn keyword Structure begin
syn keyword Structure end
syn keyword Structure let
syn keyword Structure in
syn match Structure "="
" Unary operators keywords.
syn keyword Operator scale
syn keyword Operator reset
" Attributes of unary operators keywords.
syn keyword Special cycles
syn keyword Special vertical
syn keyword Special horizontal
syn keyword Special time
" Flag management keywords.
syn keyword Structure if
syn keyword Structure then
syn keyword Structure else
syn keyword Structure set
" Attributes of flag management keywords.
syn keyword Special on
syn keyword Special off
syn keyword Special random
" Inclusion keyword.
syn keyword Include put
" Composition symbols.
syn match Macro "\["
syn match Macro "\]"
syn match Macro ";"
" Operator symbols.
syn match Operator "+"
syn match Operator "*"
syn match Operator "\^"
syn match Operator ","
syn match Operator "'"
syn match Operator "<"
syn match Operator ">"
" Variables.
syn match Constant "%\d\+"
" Numbers.
syn match Number "\d\+\.\?\d*"
" Flags.
syn match Identifier "$[a-zA-Z]\+[a-zA-Z0-9_]*"
" Aliases.
syn match Normal "[a-zA-Z]\+[a-zA-Z0-9_]*"
" Comments.
syn region Comment start="{" end="}"