Skip to content

Commit 11c077f

Browse files
committed
Remove more outdated keywords, add some new ones.
1 parent 867590f commit 11c077f

File tree

1 file changed

+131
-134
lines changed

1 file changed

+131
-134
lines changed

elixir-mode.el

Lines changed: 131 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -70,140 +70,137 @@
7070
:type 'string
7171
:group 'elixir)
7272

73-
(defvar elixir-mode-define-names '(
74-
"def"
75-
"defdelegate"
76-
"defimpl"
77-
"defmacro"
78-
"defmacrop"
79-
"defmodule"
80-
"defoverridable"
81-
"defp"
82-
"defprotocol"
83-
"defrecord"
84-
"destructure")
85-
"Elixir mode def-like keywords.")
86-
(defvar elixir-mode-keyword-names '(
87-
"->"
88-
"bc"
89-
"lc"
90-
"in"
91-
"inbits"
92-
"inlist"
93-
"quote"
94-
"unquote"
95-
"unquote_splicing"
96-
"var"
97-
"do"
98-
"after"
99-
"for"
100-
"def"
101-
"defdelegate"
102-
"defimpl"
103-
"defmacro"
104-
"defmacrop"
105-
"defmodule"
106-
"defoverridable"
107-
"defp"
108-
"defprotocol"
109-
"defrecord"
110-
"destructure"
111-
"alias"
112-
"refer"
113-
"require"
114-
"import"
115-
"use"
116-
"if"
117-
"true"
118-
"false"
119-
"when"
120-
"case"
121-
"cond"
122-
"throw"
123-
"then"
124-
"else"
125-
"elsif"
126-
"try"
127-
"catch"
128-
"rescue"
129-
"fn"
130-
"receive"
131-
"end")
132-
"Elixir mode keywords.")
133-
(defvar elixir-mode-module-names '(
134-
"Behavior"
135-
"Binary"
136-
"Bitwise"
137-
"Builtin"
138-
"Elixir"
139-
"Code"
140-
"EEx"
141-
"Enum"
142-
"ExUnit"
143-
"Exception"
144-
"File"
145-
"GenServer"
146-
"Function"
147-
"GenServer"
148-
"GenTCP"
149-
"HashDict"
150-
"IO"
151-
"Keyword"
152-
"List"
153-
"Math"
154-
"Module"
155-
"Node"
156-
"OptrionParser"
157-
"OrdDict"
158-
"Port"
159-
"Process"
160-
"Record"
161-
"Regexp"
162-
"System"
163-
"Tuple"
164-
"URI"
165-
"UnboundMethod")
166-
"Elixir mode modules.")
167-
(defvar elixir-mode-builtin-names '(
168-
"Erlang"
169-
"__MODULE__"
170-
"__FUNCTION__"
171-
"__LINE__"
172-
"__FILE__"
173-
"__LOCAL__"
174-
)
175-
"Elixir mode builtins.")
176-
(defvar elixir-mode-operator-names '(
177-
"+"
178-
"++"
179-
"<>"
180-
"-"
181-
"/"
182-
"*"
183-
"div"
184-
"rem"
185-
"=="
186-
"!="
187-
"<="
188-
"<"
189-
">="
190-
">"
191-
"==="
192-
"!=="
193-
"and"
194-
"or"
195-
"andalso"
196-
"orelse"
197-
"not"
198-
"&&"
199-
"||"
200-
"!"
201-
"."
202-
"#"
203-
"="
204-
":="
205-
"<-")
206-
"Elixir mode operators.")
73+
(defvar elixir-mode-define-names
74+
'("def"
75+
"defdelegate"
76+
"defimpl"
77+
"defmacro"
78+
"defmacrop"
79+
"defmodule"
80+
"defoverridable"
81+
"defp"
82+
"defprotocol"
83+
"defrecord"
84+
"destructure")
85+
"Elixir mode def-like keywords.")
86+
(defvar elixir-mode-keyword-names
87+
'("->"
88+
"bc"
89+
"lc"
90+
"in"
91+
"inbits"
92+
"inlist"
93+
"quote"
94+
"unquote"
95+
"unquote_splicing"
96+
"var"
97+
"do"
98+
"after"
99+
"for"
100+
"def"
101+
"defdelegate"
102+
"defimpl"
103+
"defmacro"
104+
"defmacrop"
105+
"defmodule"
106+
"defoverridable"
107+
"defp"
108+
"defprotocol"
109+
"defrecord"
110+
"destructure"
111+
"alias"
112+
"require"
113+
"import"
114+
"use"
115+
"if"
116+
"true"
117+
"false"
118+
"when"
119+
"case"
120+
"cond"
121+
"throw"
122+
"then"
123+
"else"
124+
"elsif"
125+
"try"
126+
"catch"
127+
"rescue"
128+
"fn"
129+
"function"
130+
"receive"
131+
"end")
132+
"Elixir mode keywords.")
133+
(defvar elixir-mode-module-names
134+
'("Behavior"
135+
"Binary"
136+
"Bitwise"
137+
"Builtin"
138+
"Elixir"
139+
"Code"
140+
"EEx"
141+
"Enum"
142+
"ExUnit"
143+
"Exception"
144+
"File"
145+
"GenServer"
146+
"Function"
147+
"GenServer"
148+
"GenTCP"
149+
"HashDict"
150+
"IO"
151+
"Keyword"
152+
"List"
153+
"Math"
154+
"Module"
155+
"Node"
156+
"OptionParser"
157+
"OrdDict"
158+
"Port"
159+
"Process"
160+
"Record"
161+
"Regexp"
162+
"System"
163+
"Tuple"
164+
"URI"
165+
"UnboundMethod")
166+
"Elixir mode modules.")
167+
(defvar elixir-mode-builtin-names
168+
'("Erlang"
169+
"__MODULE__"
170+
"__LINE__"
171+
"__FILE__"
172+
"__ENV__")
173+
"Elixir mode builtins.")
174+
(defvar elixir-mode-operator-names
175+
'("+"
176+
"++"
177+
"<>"
178+
"-"
179+
"/"
180+
"*"
181+
"div"
182+
"rem"
183+
"=="
184+
"!="
185+
"<="
186+
"<"
187+
">="
188+
">"
189+
"==="
190+
"!=="
191+
"and"
192+
"or"
193+
"not"
194+
"&&"
195+
"||"
196+
"!"
197+
"."
198+
"#"
199+
"="
200+
":="
201+
"<-")
202+
"Elixir mode operators.")
203+
207204
(defvar elixir-basic-offset 2)
208205
(defvar elixir-key-label-offset 0)
209206
(defvar elixir-match-label-offset 2)

0 commit comments

Comments
 (0)