-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasl.nanorc
More file actions
38 lines (28 loc) · 1.11 KB
/
Copy pathasl.nanorc
File metadata and controls
38 lines (28 loc) · 1.11 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
## Pimped syntax highlighting for
## .asl (AgentSpeak Language) files
syntax jason "\.asl$"
comment "//"
# Boolean variables (true, false)
# Annotations (starting by @)
color cyan "true|false|@[[:print:]]+"
# Reserved keywords: (tell, untell, achieve, unachieve...)
color blue "\<(tell|untell|achieve|unachieve)\>"
# Mental notes from the type [source(...)]
color brightyellow "[[][[:space:]]*source[(][[:print:]]*[)][[:space:]]*[]]"
# Function calls (.print, .send, ...)
# Basically everything starting with <dot>
## This assumes that you have a bright theme while using nano.
## Consider changing the color if its contrast is very low.
color brightwhite "[.]([[:alnum:]]|_)+"
# Achievement goal add and removal (+!, -!)
color brightred "([-+]|[-]|[+])[!]?[!?]?([[:alnum:]]|_)*"
# Achievement goals (!), test goals (?)
color brightred "([!]|[!!]|[?])([[:alnum:]]|_)*"
# Context where the goal will take place (:)
# Separation from trigger + context to function body (<-)
color brightcyan ":[-]?|<-"
# Strings
color brightblue ""[^"]*""
# Comments
color brightgreen "//[[:print:]]*"
color brightgreen start="/\*" end="\*/"