Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pony.nanorc - github.com/serialhex/nano-highlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d02c1d7272b48f0fed17ec99941f8baf55b31ec6 (plain)
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
syntax "pony" "\.pony$"

## Pony lang syntax hilighting for nano
## Richard JUAN @ https://github.com/richardjuan

## Classes
color yellow "( |^)[A-Z](|[0-9a-zA-Z_\-]*)"
color yellow "( |^)@[A-Z][a-zA-Z0-9_\-\.]*"
color cyan "^(class|actor) [A-Z][a-zA-Z0-9_\-]+ .*"

## Types and bool
color yellow "\<(true|false|tag|trn|val|iso|box|ref)\>"

## Basic keywords
color brightmagenta "\<(let|var|do|end|as|is|match|then|for|while|if|else|break|continue|repeat|until|in|try|with|where|object|contume|recover|embed|compile_error|error|lambda|this)\>"

## Declarations
color brightmagenta "^(class|primitive|type|actor|trait|interface) "

## Important keywords
color brightred "^[ \t]*(new|fun|be|ifdef) "
color brightred "^(use) "


## Comments
color white "//.*"

## Integers, Floats ...
color yellow "\<[+-]?[0-9]+\>"
color yellow "\<[-+]?[0-9]*\.?[0-9]+(e[-+]?[0-9]+)?\>"
color yellow "\<0x[0-9a-fA-F]+\>"
color yellow "\<0b[0-1]+\>"

## Class/Actor call
color Yellow "\<[A-Z][a-zA-Z0-9_\-]+(\(|\.)"
color brightblue "\<[a-zA-Z0-9_\-]+\("

## white dots and parentessis
color brightwhite "[.:()&*=+\-\|{}%<>!@]"
color brightwhite "(\\|/|\[|\])"
color brightwhite " (xor|or|and|not) "

# Quoted strings
color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''"