-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaes.vim
62 lines (50 loc) · 2.18 KB
/
aes.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
" Vim syntax file
" Language: Sophia
" Maintainer: Yinka Enoch Adedokun <[email protected]>
if exists("b:current_syntax")
finish
endif
syn keyword sophiaCommentTodo TODO XXX FIXME NOTE
syn match sophiaLineComment "\/\/.*" contains=sophiaCommentTodo,@Spell
syn match sophiaCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
syn region sophiaComment start="/\*" end="\*/" contains=@Spell,sophiaCommentTodo
syn keyword sophiaConditional if else elif switch
syn keyword sophiaBoolean true false
syn keyword sophiaLabel Some None
syn keyword sophiaMessage abort require
syn keyword sophiaGlobal contract namespace import include compiler
syn keyword sophiaFunc function entrypoint
syn match sophiaBraces "[{}\[\]]"
syn match sophiaParens "[()]"
syn match sophiaSpecialChars "[!%^&*-+=|<>]"
" 2
syn match sophiaNumber "\v<\d+>"
" 2.0
syn match sophiaNumber "\v<\d+\.\d+>"
syn match sophiaString "\v\"(\w.*)\""
syn keyword sophiaKeyword let mod type private payable stateful datatype public
syntax keyword sophiaType int address bool bits bytes string list tuple
\ record map option state event hash signature oracle oracle_query
syntax keyword sophiaPrimitiveFunc Chain Call Contract Oracle AENS put
" Set highlights
hi def link sophiaKeyword Keyword
hi def link sophiaType Type
hi def link sophiaPrimitiveFunc Operator
hi def link sophiaImports Include
hi def link sophiaStructure Structure
hi def link sophiaNumber Number
hi def link sophiaBoolean Boolean
hi def link sophiaString String
hi def link sophiaComment Comment
hi def link sophiaLineComment Comment
hi def link sophiaCommentTodo Todo
hi def link sophiaFunc Function
hi def link sophiaBraces Function
hi def link sophiaParens Type
hi def link sophiaConditional Conditional
hi def link sophiaOperator Operator
hi def link sophiaLabel Label
hi def link sophiaMessage Keyword
hi def link sophiaGlobal Keyword
hi def link sophiaToken Statement
hi def link sophiaSpecialChars Operator