-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasteroid.vim
More file actions
78 lines (69 loc) · 1.82 KB
/
Copy pathasteroid.vim
File metadata and controls
78 lines (69 loc) · 1.82 KB
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
74
75
76
77
78
" Vim syntax file
" Language: Asteroid
" Maintainer: Theo Henson <theodorehenson at protonmail dot com>
" Last Change: 2022 Jan 20
" Copy this file to ~/.vim/syntax/asteroid.vim
" For filetype detection create ~/.vim/ftdetect/asteroid.vim containing:
" au BufRead,BufNewFile *.ast set filetype=asteroid
if exists("b:current_syntax")
finish
endif
syn keyword basic and
syn keyword basic as
syn keyword basic assert
syn keyword basic bind
syn keyword basic break
syn keyword basic catch
syn keyword basic data
syn keyword basic do
syn keyword basic elif
syn keyword basic else
syn keyword basic end
syn keyword basic escape
syn keyword basic eval
syn keyword basic for
syn keyword basic from
syn keyword basic function
syn keyword basic global
syn keyword basic if
syn keyword basic in
syn keyword basic is
syn keyword basic lambda
syn keyword basic let
syn keyword basic load
syn keyword basic loop
syn keyword basic not
syn keyword basic or
syn keyword basic orwith
syn keyword basic pattern
syn keyword basic repeat
syn keyword basic return
syn keyword basic step
syn keyword basic structure
syn keyword basic system
syn keyword basic throw
syn keyword basic to
syn keyword basic try
syn keyword basic until
syn keyword basic while
syn keyword basic with
syn keyword delimeter escape
syn match pattern /%[a-zA-Z]*/
syn match pattern /@[a-z_A-Z]*/
syn match pattern / if /
syn region string start=/\v"/ skip=/\v\\./ end=/\v"/
syn keyword boolean true false
syn match number '\d\+'
syn match number '\d\+\.?\d*'
syn match delimeter '*'
syn match delimeter '\n'
syn match comment '\--.*$'
syn keyword todo TODO FIX FIXME NOTE Note
hi def link basic Statement
hi def link boolean Constant
hi def link number Constant
hi def link pattern Function
hi def link string Constant
hi def link delimeter PreProc
hi def link comment Comment
hi def link todo Todo