-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelm.yaml
79 lines (60 loc) · 2.63 KB
/
elm.yaml
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
79
filetype: Elm
detect:
filename: "\\.elm$"
rules:
# Keywords
# - statement: "[ ](as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)[ ]"
# - statement: "(^data|^foreign|^import|^infix|^infixl|^infixr|^instance|^module|^newtype|^type)[ ]"
# - statement: "[ ](as$|case$|of$|class$|data$|default$|deriving$|do$|forall$|foreign$|hiding$|if$|then$|else$|import$|infix$|infixl$|infixr$|instance$|let$|in$|mdo$|module$|newtype$|qualified$|type$|where$)"
# Pascal
#- type: "\\b(?i:(string|ansistring|widestring|shortstring|char|ansichar|widechar|boolean|byte|shortint|word|smallint|longword|cardinal|longint|integer|int64|single|currency|double|extended))\\b"
- type: "\\b(?i:(Float|Int|Number|String))\\b"
- statement: "[ ](as|alias|and|case|else|exposing|if|import|in|infixr|let|module|not|of|or|port|then|type|var|where)[ ]"
- statement: "(^import|^module|^type)[ ]"
- statement: "[ ](case$|of$|if$|then$|else$|import$|let$|in$|type$)"
# 'as', 'alias', 'and', 'case', 'else',
# 'exposing', 'if', 'in', 'infixr', 'import',
# 'let', 'module', 'not', 'of', 'or',
# 'port', 'then', 'type', 'var', 'where'
# Various symbols ?? does it work?
# - symbol: "(\\||@|!|:|_|~|=|\\\\|;|\\(\\)|,|\\[|\\]|\\{|\\})"
- symbol: "(\\||@|!|:|::|_|~|=|\\\\|;|\\(\\)|,|\\[|\\]|\\{|\\})"
# Operators
# - symbol.operator: "(==|/=|&&|\\|\\||<|>|<=|>=)"
- symbol.operator: "(<|>|<=|>=)"
# Various symbols
- special: "(->|<-)"
# - symbol: "\\.|\\$"
# Data constructors
- constant.bool: "\\b(True|False)\\b"
# - constant: "(Nothing|Just|Left|Right|LT|EQ|GT)"
- constant: "(Nothing|Just|LT|EQ|GT)"
# Data classes
# - identifier.class: "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
# - identifier.class: "[ ](Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)"
# Strings
- constant.string:
start: "\""
end: "\""
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
# Char
- constant.string:
start: "'"
end: "'"
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
# Comments
- comment:
start: "--"
end: "$"
rules:
- todo: "(TODO|XXX|FIXME):?"
- comment:
start: "\\{-"
end: "-\\}"
rules:
- todo: "(TODO|XXX|FIXME):?"
- identifier.micro: "undefined"