-
Notifications
You must be signed in to change notification settings - Fork 0
/
elixir.yaml
75 lines (51 loc) · 2.04 KB
/
elixir.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
filetype: Elixir
detect:
filename: "\\.exs$"
rules:
# Keywords
# Types
# - type: "\\b(?i:(Float|Int|Number|String))\\b"
# - statement: "[ ](|||||)[ ]"
- statement: "\\b(alias|case|cond|def|defmodule|defp|defstruct|defprotocol)\\b"
- statement: "\\b(defimpl|defmacro|quote|unquote|receive|fn|do|else|else if)\\b"
- statement: "\\b(end|false|if|in|next|rescue|for|true|unless|when)\\b"
- statement: "\\b(nil|raise|throw|try|catch|after|with|require)\\b"
- statement: "\\b(use|__MODULE__|__FILE__)\\b"
- statement: "\\b(__DIR__|__ENV__|__CALLER__)\\b"
- special: "\\b(do|end)\\b"
# - statement: "(^import|^module|^type)[ ]"
# - statement: "[ ](case$|of$|if$|then$|else$|import$|let$|in$|type$)"
#var indentWords = wordObj(['def|defmodule|defp|case|cond|rescue|try|catch|->']);
# Various symbols ?? does it work?
- symbol: "(\\||@|!|:|_|~|=|\\\\|;|\\(\\)|,|\\[|\\]|\\{|\\})"
# Operators
# - 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: "\\\\."
# Comments
- comment:
start: "#"
end: "$"
rules:
- todo: "(TODO|XXX|FIXME):?"
# - comment:
# start: "\\{-"
# end: "-\\}"
# rules:
# - todo: "(TODO|XXX|FIXME):?"
# - identifier.micro: "undefined"