├── elixir_gedit.png
├── README.md
├── LICENSE
├── old_versions
├── elixir_0.12.5.lang
├── elixir_1.0.x.lang
├── elixir_0.14.0.lang
├── elixir_0.15.0.lang
├── elixir_1.1.x.lang
├── elixir_1.2.x.lang
├── elixir_1.3-4.x.lang
├── elixir_1.5.x.lang
├── elixir_1.6.x.lang
├── elixir_1.8.x.lang
├── elixir_1.9.x.lang
└── elixir_1.10.x.lang
└── elixir.lang
/elixir_gedit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SteffenBauer/elixir-gtksourceview/HEAD/elixir_gedit.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | elixir-gtksourceview
2 | ====================
3 | 
4 |
5 | GtkSourceView syntax highlighting for the [Elixir programming language](http://elixir-lang.org/)
6 |
7 | Covers Elixir version 1.15.x
8 |
9 | ## Usage:
10 |
11 | Copy `elixir.lang` into one of these directories:
12 |
13 | * `~/.local/share/gtksourceview-X.X/language-specs/`
14 | * `/usr/local/share/gtksourceview-X.X/language-specs/`
15 | * `/usr/share/gtksourceview-X.X/language-specs/`
16 |
17 | Replace 'X.X' with your version of GtkSourceView.
18 |
19 | _gedit_ and other tools using GtkSourceView should then show Elixir syntax highlighting.
20 |
21 | **Note for Archlinux users:** `gedit` in Archlinux uses the `libgedit-gtksourceview` package. In this case, you should copy `elixir.lang` to this path:
22 |
23 | `/usr/share/libgedit-gtksourceview-300/language-specs/`
24 |
25 | Versions for older Elixir releases can be found in `old_versions`
26 |
27 | Have also a look at [elixir-ctags](https://github.com/mmorearty/elixir-ctags) to further enhance your gedit experience when writing Elixir code.
28 |
29 | ## Please note:
30 | I reorganized the language definition file in order to include an experimental setup. It should now highlight ExUnit language elements only in the according context of elixir unit testing files. Please submit an issue report should you encounter any problems.
31 |
32 | ### License
33 |
34 | This language definition file is licensed under the GNU Lesser General Public License 3.0.
35 |
36 | A copy is provided with this package (see LICENSE) or can be obtained at:
37 |
38 | http://www.gnu.org/licenses/lgpl-3.0.html
39 |
40 | This language definition file is to be used with GtkSourceView
41 |
42 | GtkSourceView is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
43 |
44 | GtkSourceView is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
45 |
46 | You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
47 |
48 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 |
9 | This version of the GNU Lesser General Public License incorporates
10 | the terms and conditions of version 3 of the GNU General Public
11 | License, supplemented by the additional permissions listed below.
12 |
13 | 0. Additional Definitions.
14 |
15 | As used herein, "this License" refers to version 3 of the GNU Lesser
16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
17 | General Public License.
18 |
19 | "The Library" refers to a covered work governed by this License,
20 | other than an Application or a Combined Work as defined below.
21 |
22 | An "Application" is any work that makes use of an interface provided
23 | by the Library, but which is not otherwise based on the Library.
24 | Defining a subclass of a class defined by the Library is deemed a mode
25 | of using an interface provided by the Library.
26 |
27 | A "Combined Work" is a work produced by combining or linking an
28 | Application with the Library. The particular version of the Library
29 | with which the Combined Work was made is also called the "Linked
30 | Version".
31 |
32 | The "Minimal Corresponding Source" for a Combined Work means the
33 | Corresponding Source for the Combined Work, excluding any source code
34 | for portions of the Combined Work that, considered in isolation, are
35 | based on the Application, and not on the Linked Version.
36 |
37 | The "Corresponding Application Code" for a Combined Work means the
38 | object code and/or source code for the Application, including any data
39 | and utility programs needed for reproducing the Combined Work from the
40 | Application, but excluding the System Libraries of the Combined Work.
41 |
42 | 1. Exception to Section 3 of the GNU GPL.
43 |
44 | You may convey a covered work under sections 3 and 4 of this License
45 | without being bound by section 3 of the GNU GPL.
46 |
47 | 2. Conveying Modified Versions.
48 |
49 | If you modify a copy of the Library, and, in your modifications, a
50 | facility refers to a function or data to be supplied by an Application
51 | that uses the facility (other than as an argument passed when the
52 | facility is invoked), then you may convey a copy of the modified
53 | version:
54 |
55 | a) under this License, provided that you make a good faith effort to
56 | ensure that, in the event an Application does not supply the
57 | function or data, the facility still operates, and performs
58 | whatever part of its purpose remains meaningful, or
59 |
60 | b) under the GNU GPL, with none of the additional permissions of
61 | this License applicable to that copy.
62 |
63 | 3. Object Code Incorporating Material from Library Header Files.
64 |
65 | The object code form of an Application may incorporate material from
66 | a header file that is part of the Library. You may convey such object
67 | code under terms of your choice, provided that, if the incorporated
68 | material is not limited to numerical parameters, data structure
69 | layouts and accessors, or small macros, inline functions and templates
70 | (ten or fewer lines in length), you do both of the following:
71 |
72 | a) Give prominent notice with each copy of the object code that the
73 | Library is used in it and that the Library and its use are
74 | covered by this License.
75 |
76 | b) Accompany the object code with a copy of the GNU GPL and this license
77 | document.
78 |
79 | 4. Combined Works.
80 |
81 | You may convey a Combined Work under terms of your choice that,
82 | taken together, effectively do not restrict modification of the
83 | portions of the Library contained in the Combined Work and reverse
84 | engineering for debugging such modifications, if you also do each of
85 | the following:
86 |
87 | a) Give prominent notice with each copy of the Combined Work that
88 | the Library is used in it and that the Library and its use are
89 | covered by this License.
90 |
91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license
92 | document.
93 |
94 | c) For a Combined Work that displays copyright notices during
95 | execution, include the copyright notice for the Library among
96 | these notices, as well as a reference directing the user to the
97 | copies of the GNU GPL and this license document.
98 |
99 | d) Do one of the following:
100 |
101 | 0) Convey the Minimal Corresponding Source under the terms of this
102 | License, and the Corresponding Application Code in a form
103 | suitable for, and under terms that permit, the user to
104 | recombine or relink the Application with a modified version of
105 | the Linked Version to produce a modified Combined Work, in the
106 | manner specified by section 6 of the GNU GPL for conveying
107 | Corresponding Source.
108 |
109 | 1) Use a suitable shared library mechanism for linking with the
110 | Library. A suitable mechanism is one that (a) uses at run time
111 | a copy of the Library already present on the user's computer
112 | system, and (b) will operate properly with a modified version
113 | of the Library that is interface-compatible with the Linked
114 | Version.
115 |
116 | e) Provide Installation Information, but only if you would otherwise
117 | be required to provide such information under section 6 of the
118 | GNU GPL, and only to the extent that such information is
119 | necessary to install and execute a modified version of the
120 | Combined Work produced by recombining or relinking the
121 | Application with a modified version of the Linked Version. (If
122 | you use option 4d0, the Installation Information must accompany
123 | the Minimal Corresponding Source and Corresponding Application
124 | Code. If you use option 4d1, you must provide the Installation
125 | Information in the manner specified by section 6 of the GNU GPL
126 | for conveying Corresponding Source.)
127 |
128 | 5. Combined Libraries.
129 |
130 | You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 |
136 | a) Accompany the combined library with a copy of the same work based
137 | on the Library, uncombined with any other library facilities,
138 | conveyed under the terms of this License.
139 |
140 | b) Give prominent notice with the combined library that part of it
141 | is a work based on the Library, and explaining where to find the
142 | accompanying uncombined form of the same work.
143 |
144 | 6. Revised Versions of the GNU Lesser General Public License.
145 |
146 | The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 |
151 | Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 |
161 | If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.
166 |
--------------------------------------------------------------------------------
/old_versions/elixir_0.12.5.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
26 |
27 | text/x-elixir
28 | *.exs;*.ex
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 | (~[crswCRSW])?"""
58 | ^\s*"""
59 |
60 |
61 |
62 | (~[crswCRSW])?'''
63 | ^\s*'''
64 |
65 |
66 |
67 | " "
68 |
69 |
70 |
71 |
72 |
73 | ' '
74 |
75 |
76 |
77 |
78 |
82 |
83 |
84 | \:[a-zA-Z_](\w)*(!|\?)?
85 |
86 |
87 |
88 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
89 |
90 |
91 |
92 | ~[crsw]\( \)[fgimrsuxbac]*
93 |
94 |
95 |
96 |
97 |
98 | ~[crsw]\[ \][fgimrsuxbac]*
99 |
100 |
101 |
102 |
103 |
104 | ~[crsw]\{ \}[fgimrsuxbac]*
105 |
106 |
107 |
108 |
109 |
110 | ~[crsw]< >[fgimrsuxbac]*
111 |
112 |
113 |
114 |
115 |
116 | ~[crsw]\| \|[fgimrsuxbac]*
117 |
118 |
119 |
120 |
121 |
122 | ~[crsw]/ /[fgimrsuxbac]*
123 |
124 |
125 |
126 |
127 |
128 | ~[crsw]" "[fgimrsuxbac]*
129 |
130 |
131 |
132 |
133 |
134 | ~[crsw]' '[fgimrsuxbac]*
135 |
136 |
137 |
138 |
139 |
140 | ~[CRSW](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
141 |
142 |
143 |
144 | \&[0-9]*
145 |
146 |
147 |
148 | \#{.*?}
149 |
150 |
151 |
152 |
153 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
154 |
155 |
156 |
157 |
158 |
159 | (?<![\w\.])0[xXbB]?[0-9a-fA-F]+(?![\w\.])
160 |
161 |
162 |
163 |
164 |
165 | (?<![\w\.])[0-9]+(?![\w\.])
166 |
167 |
168 |
169 |
170 | (?<![\w\.])\@[a-zA-Z_](\w)*
171 |
172 |
173 |
174 | true
175 | false
176 | nil
177 |
178 |
179 |
180 | (?<![\w])[A-Z](\w)*
181 |
182 |
183 |
184 | do
185 | when
186 | end
187 |
188 |
189 |
190 | alias|import|require
191 | case
192 | fn
193 | receive|after
194 | try|catch|rescue
195 | super
196 | quote|unquote|unquote_splicing
197 | bc|lc|inlist|inbits
198 |
199 | __DIR__
200 | __ENV__
201 | __MODULE__
202 | __CALLER__
203 | __aliases__
204 | __block__
205 |
206 |
207 |
208 | abs|trunc|rem|div|round|max|min
209 | and|or|not|xor
210 | throw|raise
211 | hd|tl|in|length|elem|set_elem|size|access|destructure
212 | (atom|float|integer)_to_(binary|list)
213 | binary_to_(atom|existing_atom|float|integer)
214 | list_to_(atom|bitstring|existing_atom|float|integer|tuple)
215 | (bitstring|tuple)_to_list
216 | iolist_to_binary
217 | to_(string|char_list)
218 | is_(atom|binary|bitstring|boolean|exception|float|function|integer|list|number|pid|port|record|reference|tuple)
219 | (bit|byte|iolist|tuple)_size
220 | binary_part
221 | def(delegate|exception|impl|macro|macrop|module|overridable|p|protocol|record|recordp)?
222 | sigil_[crswCRSW]
223 | if|else|unless|cond
224 | (function|macro)_exported
225 | match|binding
226 | node|self|spawn|spawn_link|send|exit
227 | apply
228 | inspect
229 | make_ref
230 | use
231 |
232 |
233 |
234 | (test|doctest)
235 | (setup|setup_all|teardown|teardown_all)
236 | (assert|refute)
237 |
238 |
239 |
240 |
241 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.0.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSW])?"""
67 | ^\s*"""
68 |
69 |
70 |
71 | (~[crswCRSW])?'''
72 | ^\s*'''
73 |
74 |
75 |
76 | " "
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
91 |
92 |
93 | \:[a-zA-Z_](\w)*(!|\?)?
94 |
95 |
96 |
97 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
98 |
99 |
100 |
101 | ~[crsw]\( \)[fgimrsuxbac]*
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\[ \][fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 | ~[crsw]\{ \}[fgimrsuxbac]*
114 |
115 |
116 |
117 |
118 |
119 | ~[crsw]< >[fgimrsuxbac]*
120 |
121 |
122 |
123 |
124 |
125 | ~[crsw]\| \|[fgimrsuxbac]*
126 |
127 |
128 |
129 |
130 |
131 | ~[crsw]/ /[fgimrsuxbac]*
132 |
133 |
134 |
135 |
136 |
137 | ~[crsw]" "[fgimrsuxbac]*
138 |
139 |
140 |
141 |
142 |
143 | ~[crsw]' '[fgimrsuxbac]*
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSW](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 | (\s|^)(alias|var)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
155 |
156 |
157 |
158 |
159 | \&[0-9]*
160 |
161 |
162 |
163 | %([A-Z](\w)*)?
164 |
165 |
166 |
167 | \#{.*?}
168 |
169 |
170 |
171 |
172 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
173 |
174 |
175 |
176 |
177 |
178 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
179 |
180 |
181 |
182 |
183 |
184 | (?<![\w\.])[0-9]+(?![\w\.])
185 |
186 |
187 |
188 |
189 | (?<![\w\.])\@[a-zA-Z_](\w)*
190 |
191 |
192 |
193 | (?<![\w])[A-Z](\w)*
194 |
195 |
196 |
197 | do
198 | when
199 | end
200 |
201 |
202 |
203 | true
204 | false
205 | nil
206 |
207 |
208 |
209 | alias|import|require
210 | case
211 | fn
212 | receive|after
213 | try|catch|rescue
214 | super
215 | quote|unquote|unquote_splicing
216 | for
217 |
218 | __CALLER__
219 | __DIR__
220 | __ENV__
221 | __MODULE__
222 | __aliases__
223 | __block__
224 |
225 |
226 |
227 | abs|trunc|rem|div|round|max|min
228 | and|or|not
229 | throw|raise|reraise
230 | hd|tl|in|length|elem|put_elem|destructure
231 | to_(string|char_list)
232 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)
233 | (bit|byte|map|tuple)_size
234 | binary_part
235 | def(delegate|exception|impl|macro|macrop|module|overridable|p|protocol|struct)?
236 | sigil_[crswCRSW]
237 | if|else|unless|cond
238 | binding
239 | node|self|spawn|spawn_link|spawn_monitor|send|exit
240 | struct|get_and_update_in|get_in|put_in|update_in
241 | apply|inspect|make_ref|use
242 |
243 |
244 |
245 | (test|doctest)
246 | assert(_in_delta|_raise|_receive|_received)?
247 | refute(_in_delta|_receive|_received)?
248 | flunk
249 | catch(_error|_exit|_throw)
250 | setup(_all)?
251 | on_exit
252 | capture_io
253 |
254 |
255 |
256 |
257 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
--------------------------------------------------------------------------------
/old_versions/elixir_0.14.0.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSW])?"""
67 | ^\s*"""
68 |
69 |
70 |
71 | (~[crswCRSW])?'''
72 | ^\s*'''
73 |
74 |
75 |
76 | " "
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
91 |
92 |
93 | \:[a-zA-Z_](\w)*(!|\?)?
94 |
95 |
96 |
97 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
98 |
99 |
100 |
101 | ~[crsw]\( \)[fgimrsuxbac]*
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\[ \][fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 | ~[crsw]\{ \}[fgimrsuxbac]*
114 |
115 |
116 |
117 |
118 |
119 | ~[crsw]< >[fgimrsuxbac]*
120 |
121 |
122 |
123 |
124 |
125 | ~[crsw]\| \|[fgimrsuxbac]*
126 |
127 |
128 |
129 |
130 |
131 | ~[crsw]/ /[fgimrsuxbac]*
132 |
133 |
134 |
135 |
136 |
137 | ~[crsw]" "[fgimrsuxbac]*
138 |
139 |
140 |
141 |
142 |
143 | ~[crsw]' '[fgimrsuxbac]*
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSW](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 | (\s|^)(alias|var)\!|(\s|^)(match|nil|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
155 |
156 |
157 |
158 |
159 | \&[0-9]*
160 |
161 |
162 |
163 | %([A-Z](\w)*)?
164 |
165 |
166 |
167 | \#{.*?}
168 |
169 |
170 |
171 |
172 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
173 |
174 |
175 |
176 |
177 |
178 | (?<![\w\.])0[xXbB]?[0-9a-fA-F]+(?![\w\.])
179 |
180 |
181 |
182 |
183 |
184 | (?<![\w\.])[0-9]+(?![\w\.])
185 |
186 |
187 |
188 |
189 | (?<![\w\.])\@[a-zA-Z_](\w)*
190 |
191 |
192 |
193 | (?<![\w])[A-Z](\w)*
194 |
195 |
196 |
197 | do
198 | when
199 | end
200 |
201 |
202 |
203 | true
204 | false
205 | nil
206 |
207 |
208 |
209 | alias|import|require
210 | case
211 | fn
212 | receive|after
213 | try|catch|rescue
214 | super
215 | quote|unquote|unquote_splicing
216 | for
217 |
218 | __CALLER__
219 | __DIR__
220 | __ENV__
221 | __MODULE__
222 | __aliases__
223 | __block__
224 |
225 |
226 |
227 | abs|trunc|rem|div|round|max|min
228 | and|or|not|xor
229 | throw|raise|reraise
230 | hd|tl|in|length|elem|put_elem|destructure
231 | to_(string|char_list)
232 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|number|pid|port|reference|tuple)
233 | (bit|byte|map|tuple)_size
234 | binary_part
235 | def(delegate|exception|impl|macro|macrop|module|overridable|p|protocol|struct)?
236 | sigil_[crswCRSW]
237 | if|else|unless|cond
238 | binding
239 | node|self|spawn|spawn_link|spawn_monitor|send|exit
240 | struct|get_and_update_in|get_in|put_in|update_in
241 | apply|inspect|make_ref|use
242 |
243 |
244 |
245 | (test|doctest)
246 | assert(_in_delta|_raise|_receive|_received)?
247 | refute(_in_delta|_receive|_received)?
248 | flunk
249 | catch(_error|_exit|_throw)
250 | setup(_all)?
251 | teardown(_all)?
252 | on_exit
253 | capture_io
254 |
255 |
256 |
257 |
258 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
--------------------------------------------------------------------------------
/old_versions/elixir_0.15.0.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSW])?"""
67 | ^\s*"""
68 |
69 |
70 |
71 | (~[crswCRSW])?'''
72 | ^\s*'''
73 |
74 |
75 |
76 | " "
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
91 |
92 |
93 | \:[a-zA-Z_](\w)*(!|\?)?
94 |
95 |
96 |
97 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
98 |
99 |
100 |
101 | ~[crsw]\( \)[fgimrsuxbac]*
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\[ \][fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 | ~[crsw]\{ \}[fgimrsuxbac]*
114 |
115 |
116 |
117 |
118 |
119 | ~[crsw]< >[fgimrsuxbac]*
120 |
121 |
122 |
123 |
124 |
125 | ~[crsw]\| \|[fgimrsuxbac]*
126 |
127 |
128 |
129 |
130 |
131 | ~[crsw]/ /[fgimrsuxbac]*
132 |
133 |
134 |
135 |
136 |
137 | ~[crsw]" "[fgimrsuxbac]*
138 |
139 |
140 |
141 |
142 |
143 | ~[crsw]' '[fgimrsuxbac]*
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSW](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 | (\s|^)(alias|var)\!|(\s|^)(match|nil|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
155 |
156 |
157 |
158 |
159 | \&[0-9]*
160 |
161 |
162 |
163 | %([A-Z](\w)*)?
164 |
165 |
166 |
167 | \#{.*?}
168 |
169 |
170 |
171 |
172 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
173 |
174 |
175 |
176 |
177 |
178 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
179 |
180 |
181 |
182 |
183 |
184 | (?<![\w\.])[0-9]+(?![\w\.])
185 |
186 |
187 |
188 |
189 | (?<![\w\.])\@[a-zA-Z_](\w)*
190 |
191 |
192 |
193 | (?<![\w])[A-Z](\w)*
194 |
195 |
196 |
197 | do
198 | when
199 | end
200 |
201 |
202 |
203 | true
204 | false
205 | nil
206 |
207 |
208 |
209 | alias|import|require
210 | case
211 | fn
212 | receive|after
213 | try|catch|rescue
214 | super
215 | quote|unquote|unquote_splicing
216 | for
217 |
218 | __CALLER__
219 | __DIR__
220 | __ENV__
221 | __MODULE__
222 | __aliases__
223 | __block__
224 |
225 |
226 |
227 | abs|trunc|rem|div|round|max|min
228 | and|or|not|xor
229 | throw|raise|reraise
230 | hd|tl|in|length|elem|put_elem|destructure
231 | to_(string|char_list)
232 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|number|pid|port|reference|tuple)
233 | (bit|byte|map|tuple)_size
234 | binary_part
235 | def(delegate|exception|impl|macro|macrop|module|overridable|p|protocol|struct)?
236 | sigil_[crswCRSW]
237 | if|else|unless|cond
238 | binding
239 | node|self|spawn|spawn_link|spawn_monitor|send|exit
240 | struct|get_and_update_in|get_in|put_in|update_in
241 | apply|inspect|make_ref|use
242 |
243 |
244 |
245 | (test|doctest)
246 | assert(_in_delta|_raise|_receive|_received)?
247 | refute(_in_delta|_receive|_received)?
248 | flunk
249 | catch(_error|_exit|_throw)
250 | setup(_all)?
251 | teardown(_all)?
252 | on_exit
253 | capture_io
254 |
255 |
256 |
257 |
258 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.1.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSW])?"""
68 | ^\s*"""
69 |
70 |
71 |
72 | (~[crswCRSW])?'''
73 | ^\s*'''
74 |
75 |
76 |
77 | " "
78 |
79 |
80 |
81 |
82 |
83 |
84 | ' '
85 |
86 |
87 |
88 |
89 |
90 |
94 |
95 |
96 | \:[a-zA-Z_](\w)*(!|\?)?
97 |
98 |
99 |
100 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
101 |
102 |
103 |
104 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
105 |
106 |
107 |
108 | ~[crsw]\( \)[fgimrsuxbac]*
109 |
110 |
111 |
112 |
113 |
114 |
115 | ~[crsw]\[ \][fgimrsuxbac]*
116 |
117 |
118 |
119 |
120 |
121 |
122 | ~[crsw]\{ \}[fgimrsuxbac]*
123 |
124 |
125 |
126 |
127 |
128 |
129 | ~[crsw]< >[fgimrsuxbac]*
130 |
131 |
132 |
133 |
134 |
135 |
136 | ~[crsw]\| \|[fgimrsuxbac]*
137 |
138 |
139 |
140 |
141 |
142 |
143 | ~[crsw]/ /[fgimrsuxbac]*
144 |
145 |
146 |
147 |
148 |
149 |
150 | ~[crsw]" "[fgimrsuxbac]*
151 |
152 |
153 |
154 |
155 |
156 |
157 | ~[crsw]' '[fgimrsuxbac]*
158 |
159 |
160 |
161 |
162 |
163 |
164 | ~[CRSW](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
165 |
166 |
167 |
168 |
169 | (\s|^)(alias|var)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
170 |
171 |
172 |
173 |
174 | \&[0-9]*
175 |
176 |
177 |
178 | %([A-Z](\w)*)?
179 |
180 |
181 |
182 | \#{.*?}
183 |
184 |
185 |
186 |
187 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
188 |
189 |
190 |
191 |
192 |
193 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
194 |
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+(?![\w\.])
200 |
201 |
202 |
203 |
204 | (?<![\w\.])\@[a-zA-Z_](\w)*
205 |
206 |
207 |
208 | (?<![\w])[A-Z](\w)*
209 |
210 |
211 |
212 | do
213 | when
214 | end
215 |
216 |
217 |
218 | true
219 | false
220 | nil
221 |
222 |
223 |
224 | alias|import|require
225 | case
226 | fn
227 | receive|after
228 | try|catch|rescue
229 | super
230 | quote|unquote|unquote_splicing
231 | for
232 |
233 | __CALLER__
234 | __DIR__
235 | __ENV__
236 | __MODULE__
237 | __aliases__
238 | __block__
239 |
240 |
241 |
242 | abs|trunc|rem|div|round|max|min
243 | and|or|not
244 | throw|raise|reraise
245 | hd|tl|in|length|elem|put_elem|destructure
246 | to_(string|char_list)
247 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)
248 | (bit|byte|map|tuple)_size
249 | binary_part
250 | def(delegate|exception|impl|macro|macrop|module|overridable|p|protocol|struct)?
251 | sigil_[crswCRSW]
252 | if|else|unless|cond
253 | binding
254 | node|self|spawn|spawn_link|spawn_monitor|send|exit
255 | struct|get_and_update_in|get_in|put_in|update_in
256 | apply|inspect|make_ref|use
257 |
258 |
259 |
260 | (doc)?test
261 | assert(_in_delta|_raise|_receive|_received)?
262 | refute(_in_delta|_receive|_received)?
263 | flunk
264 | catch(_error|_exit|_throw)
265 | setup(_all)?
266 | on_exit
267 | capture_io
268 | using
269 |
270 |
271 |
272 |
273 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.2.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSW])?"""
68 | ^\s*"""
69 |
70 |
71 |
72 | (~[crswCRSW])?'''
73 | ^\s*'''
74 |
75 |
76 |
77 | " "
78 |
79 |
80 |
81 |
82 |
83 |
84 | ' '
85 |
86 |
87 |
88 |
89 |
90 |
94 |
95 |
96 | \:[a-zA-Z_](\w)*(!|\?)?
97 |
98 |
99 |
100 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
101 |
102 |
103 |
104 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
105 |
106 |
107 |
108 | ~[crsw]\( \)[fgimrsuxbac]*
109 |
110 |
111 |
112 |
113 |
114 |
115 | ~[crsw]\[ \][fgimrsuxbac]*
116 |
117 |
118 |
119 |
120 |
121 |
122 | ~[crsw]\{ \}[fgimrsuxbac]*
123 |
124 |
125 |
126 |
127 |
128 |
129 | ~[crsw]< >[fgimrsuxbac]*
130 |
131 |
132 |
133 |
134 |
135 |
136 | ~[crsw]\| \|[fgimrsuxbac]*
137 |
138 |
139 |
140 |
141 |
142 |
143 | ~[crsw]/ /[fgimrsuxbac]*
144 |
145 |
146 |
147 |
148 |
149 |
150 | ~[crsw]" "[fgimrsuxbac]*
151 |
152 |
153 |
154 |
155 |
156 |
157 | ~[crsw]' '[fgimrsuxbac]*
158 |
159 |
160 |
161 |
162 |
163 |
164 | ~[CRSW](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
165 |
166 |
167 |
168 |
169 | (\s|^)(alias|var|struct)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
170 |
171 |
172 |
173 |
174 | \&[0-9]*
175 |
176 |
177 |
178 | %([A-Z](\w)*)?
179 |
180 |
181 |
182 | \#{.*?}
183 |
184 |
185 |
186 |
187 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
188 |
189 |
190 |
191 |
192 |
193 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
194 |
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+(?![\w\.])
200 |
201 |
202 |
203 |
204 | (?<![\w\.])\@[a-zA-Z_](\w)*
205 |
206 |
207 |
208 | (?<![\w])[A-Z](\w)*
209 |
210 |
211 |
212 | do
213 | when
214 | end
215 |
216 |
217 |
218 | true
219 | false
220 | nil
221 |
222 |
223 |
224 | alias|import|require
225 | case
226 | fn
227 | receive|after
228 | try|catch|rescue
229 | super
230 | quote|unquote|unquote_splicing
231 | for
232 | with
233 |
234 | __CALLER__
235 | __DIR__
236 | __ENV__
237 | __MODULE__
238 | __aliases__
239 | __block__
240 |
241 |
242 |
243 | abs|trunc|rem|div|round|max|min
244 | and|or|not
245 | throw|raise|reraise
246 | hd|tl|in|length|elem|put_elem|destructure
247 | to_(string|char_list)
248 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)
249 | (bit|byte|map|tuple)_size
250 | binary_part
251 | def(delegate|exception|impl|macro|macrop|module|overridable|p|protocol|struct)?
252 | sigil_[crswCRSW]
253 | if|else|unless|cond
254 | binding
255 | node|self|spawn|spawn_link|spawn_monitor|send|exit
256 | struct|get_and_update_in|get_in|put_in|update_in
257 | apply|inspect|make_ref|use
258 |
259 |
260 |
261 | (doc)?test
262 | assert(_in_delta|_raise|_receive|_received)?
263 | refute(_in_delta|_receive|_received)?
264 | flunk
265 | catch(_error|_exit|_throw)
266 | setup(_all)?
267 | on_exit
268 | capture_io
269 | using
270 |
271 |
272 |
273 |
274 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.3-4.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSWDTN])?"""
66 | ^\s*"""
67 |
68 |
69 |
70 | (~[crswCRSWDTN])?'''
71 | ^\s*'''
72 |
73 |
74 |
75 | " "
76 |
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | ~[crsw]\( \)[fgimrsuxbac]*
94 |
95 |
96 |
97 |
98 |
99 |
100 | ~[crsw]\[ \][fgimrsuxbac]*
101 |
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\{ \}[fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 |
114 | ~[crsw]< >[fgimrsuxbac]*
115 |
116 |
117 |
118 |
119 |
120 |
121 | ~[crsw]\| \|[fgimrsuxbac]*
122 |
123 |
124 |
125 |
126 |
127 |
128 | ~[crsw]/ /[fgimrsuxbac]*
129 |
130 |
131 |
132 |
133 |
134 |
135 | ~[crsw]" "[fgimrsuxbac]*
136 |
137 |
138 |
139 |
140 |
141 |
142 | ~[crsw]' '[fgimrsuxbac]*
143 |
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSWDTN](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
165 |
166 | \:[a-zA-Z_](\w)*(!|\?)?
167 |
168 |
169 |
170 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
171 |
172 |
173 |
174 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
175 |
176 |
177 |
178 |
179 |
180 |
181 | (\s|^)(alias|var|struct)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
182 |
183 |
184 |
185 |
186 | \&[0-9]*
187 |
188 |
189 |
190 | %([A-Z](\w)*)?
191 |
192 |
193 |
194 | \#{.*?}
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
200 |
201 |
202 |
203 |
204 |
205 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
206 |
207 |
208 |
209 |
210 |
211 | (?<![\w\.])[0-9]+(?![\w\.])
212 |
213 |
214 |
215 |
216 | (?<![\w\.])\@[a-zA-Z_](\w)*
217 |
218 |
219 |
220 | (?<![\w])[A-Z](\w)*
221 |
222 |
223 |
224 | do
225 | when
226 | end
227 |
228 |
229 |
230 | true
231 | false
232 | nil
233 |
234 |
235 |
236 | alias|import|require
237 | case
238 | fn
239 | receive|after
240 | try|catch|rescue
241 | super
242 | quote|unquote|unquote_splicing
243 | for
244 | with
245 |
246 | __CALLER__
247 | __DIR__
248 | __ENV__
249 | __MODULE__
250 | __aliases__
251 | __block__
252 |
253 |
254 |
255 | abs|trunc|rem|div|round|max|min
256 | and|or|not
257 | throw|raise|reraise
258 | hd|tl|in|length|elem|put_elem|destructure
259 | to_(string|char_list|charlist)
260 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)
261 | (bit|byte|map|tuple)_size
262 | binary_part
263 | def(delegate|exception|impl|macro|macrop|module|overridable|p|protocol|struct)?
264 | sigil_[crswCRSWDNT]
265 | if|else|unless|cond
266 | binding
267 | node|self|spawn|spawn_link|spawn_monitor|send|exit
268 | struct|get_and_update_in|get_in|put_in|pop_in|update_in
269 | apply|inspect|make_ref|use
270 |
271 |
272 |
273 |
274 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 | ExUnit
283 |
284 |
285 | (doc)?test
286 | describe
287 | assert(_in_delta|_raise|_receive|_received)?
288 | refute(_in_delta|_receive|_received)?
289 | flunk
290 | catch(_error|_exit|_throw)
291 | setup(_all)?
292 | on_exit
293 | capture(_io|_log)
294 | register(_attribute|_test)
295 | using
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.5.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSWDTN])?"""
66 | ^\s*"""
67 |
68 |
69 |
70 | (~[crswCRSWDTN])?'''
71 | ^\s*'''
72 |
73 |
74 |
75 | " "
76 |
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | ~[crsw]\( \)[fgimrsuxbac]*
94 |
95 |
96 |
97 |
98 |
99 |
100 | ~[crsw]\[ \][fgimrsuxbac]*
101 |
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\{ \}[fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 |
114 | ~[crsw]< >[fgimrsuxbac]*
115 |
116 |
117 |
118 |
119 |
120 |
121 | ~[crsw]\| \|[fgimrsuxbac]*
122 |
123 |
124 |
125 |
126 |
127 |
128 | ~[crsw]/ /[fgimrsuxbac]*
129 |
130 |
131 |
132 |
133 |
134 |
135 | ~[crsw]" "[fgimrsuxbac]*
136 |
137 |
138 |
139 |
140 |
141 |
142 | ~[crsw]' '[fgimrsuxbac]*
143 |
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSWDTN](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
165 |
166 | \:[a-zA-Z_](\w)*(!|\?)?
167 |
168 |
169 |
170 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
171 |
172 |
173 |
174 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
175 |
176 |
177 |
178 |
179 |
180 |
181 | (\s|^)(alias|var|struct)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
182 |
183 |
184 |
185 |
186 | \&[0-9]*
187 |
188 |
189 |
190 | %([A-Z](\w)*)?
191 |
192 |
193 |
194 | \#{.*?}
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
200 |
201 |
202 |
203 |
204 |
205 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
206 |
207 |
208 |
209 |
210 |
211 | (?<![\w\.])[0-9]+(?![\w\.])
212 |
213 |
214 |
215 |
216 | (?<![\w\.])\@[a-zA-Z_](\w)*
217 |
218 |
219 |
220 | (?<![\w])[A-Z](\w)*
221 |
222 |
223 |
224 | do
225 | when
226 | end
227 |
228 |
229 |
230 | true
231 | false
232 | nil
233 |
234 |
235 |
236 | alias|import|require
237 | case
238 | fn
239 | receive|after
240 | try|catch|rescue
241 | super
242 | quote|unquote|unquote_splicing
243 | for
244 | with
245 |
246 | __CALLER__
247 | __DIR__
248 | __ENV__
249 | __MODULE__
250 | __aliases__
251 | __block__
252 |
253 |
254 |
255 | abs|trunc|rem|div|round|max|min
256 | and|or|not
257 | throw|raise|reraise
258 | hd|tl|in|length|elem|put_elem|destructure
259 | to_(string|charlist)
260 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)
261 | (bit|byte|map|tuple)_size
262 | binary_part
263 | def(delegate|exception|impl|macro|macrop|module|overridable|p|protocol|struct)?
264 | sigil_[crswCRSWDNT]
265 | if|else|unless|cond
266 | binding
267 | node|self|spawn|spawn_link|spawn_monitor|send|exit
268 | struct|get_and_update_in|get_in|put_in|pop_in|update_in
269 | apply|inspect|make_ref|use
270 |
271 |
272 |
273 |
274 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 | ExUnit
283 |
284 |
285 | (doc)?test
286 | describe
287 | assert(_in_delta|_raise|_receive|_received)?
288 | refute(_in_delta|_receive|_received)?
289 | flunk
290 | catch(_error|_exit|_throw)
291 | setup(_all)?
292 | on_exit
293 | capture(_io|_log)
294 | register(_attribute|_test)
295 | using
296 | (start|stop)_supervised
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.6.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSWDTN])?"""
66 | ^\s*"""
67 |
68 |
69 |
70 | (~[crswCRSWDTN])?'''
71 | ^\s*'''
72 |
73 |
74 |
75 | " "
76 |
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | ~[crsw]\( \)[fgimrsuxbac]*
94 |
95 |
96 |
97 |
98 |
99 |
100 | ~[crsw]\[ \][fgimrsuxbac]*
101 |
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\{ \}[fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 |
114 | ~[crsw]< >[fgimrsuxbac]*
115 |
116 |
117 |
118 |
119 |
120 |
121 | ~[crsw]\| \|[fgimrsuxbac]*
122 |
123 |
124 |
125 |
126 |
127 |
128 | ~[crsw]/ /[fgimrsuxbac]*
129 |
130 |
131 |
132 |
133 |
134 |
135 | ~[crsw]" "[fgimrsuxbac]*
136 |
137 |
138 |
139 |
140 |
141 |
142 | ~[crsw]' '[fgimrsuxbac]*
143 |
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSWDTN](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
165 |
166 | \:[a-zA-Z_](\w)*(!|\?)?
167 |
168 |
169 |
170 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
171 |
172 |
173 |
174 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
175 |
176 |
177 |
178 |
179 |
180 |
181 | (\s|^)(alias|var|struct)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
182 |
183 |
184 |
185 |
186 | \&[0-9]*
187 |
188 |
189 |
190 | %([A-Z](\w)*)?
191 |
192 |
193 |
194 | \#{.*?}
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
200 |
201 |
202 |
203 |
204 |
205 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
206 |
207 |
208 |
209 |
210 |
211 | (?<![\w\.])[0-9]+(?![\w\.])
212 |
213 |
214 |
215 |
216 | (?<![\w\.])\@[a-zA-Z_](\w)*
217 |
218 |
219 |
220 | (?<![\w])[A-Z](\w)*
221 |
222 |
223 |
224 | do
225 | when
226 | end
227 |
228 |
229 |
230 | true
231 | false
232 | nil
233 |
234 |
235 |
236 | alias|import|require
237 | case
238 | fn
239 | receive|after
240 | try|catch|rescue
241 | super
242 | quote|unquote|unquote_splicing
243 | for
244 | with
245 |
246 | __CALLER__
247 | __DIR__
248 | __ENV__
249 | __MODULE__
250 | __aliases__
251 | __block__
252 |
253 |
254 |
255 | abs|trunc|rem|div|round|max|min
256 | and|or|not
257 | throw|raise|reraise
258 | hd|tl|in|length|elem|put_elem|destructure
259 | to_(string|charlist)
260 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)
261 | (bit|byte|map|tuple)_size
262 | binary_part
263 | def(delegate|exception|guard|guardp|impl|macro|macrop|module|overridable|p|protocol|struct)?
264 | sigil_[crswCRSWDNT]
265 | if|else|unless|cond
266 | binding
267 | node|self|spawn|spawn_link|spawn_monitor|send|exit
268 | struct|get_and_update_in|get_in|put_in|pop_in|update_in
269 | apply|inspect|make_ref|use
270 |
271 |
272 |
273 |
274 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 | ExUnit
283 |
284 |
285 | (doc)?test
286 | describe
287 | assert(_in_delta|_raise|_receive|_received)?
288 | refute(_in_delta|_receive|_received)?
289 | flunk
290 | catch(_error|_exit|_throw)
291 | setup(_all)?
292 | on_exit
293 | capture(_io|_log)
294 | register(_attribute|_test)
295 | using
296 | (start|stop)_supervised
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.8.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSWDTN])?"""
66 | ^\s*"""
67 |
68 |
69 |
70 | (~[crswCRSWDTN])?'''
71 | ^\s*'''
72 |
73 |
74 |
75 | " "
76 |
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | ~[crsw]\( \)[fgimrsuxbac]*
94 |
95 |
96 |
97 |
98 |
99 |
100 | ~[crsw]\[ \][fgimrsuxbac]*
101 |
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\{ \}[fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 |
114 | ~[crsw]< >[fgimrsuxbac]*
115 |
116 |
117 |
118 |
119 |
120 |
121 | ~[crsw]\| \|[fgimrsuxbac]*
122 |
123 |
124 |
125 |
126 |
127 |
128 | ~[crsw]/ /[fgimrsuxbac]*
129 |
130 |
131 |
132 |
133 |
134 |
135 | ~[crsw]" "[fgimrsuxbac]*
136 |
137 |
138 |
139 |
140 |
141 |
142 | ~[crsw]' '[fgimrsuxbac]*
143 |
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSWDTN](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
165 |
166 | \:[a-zA-Z_](\w)*(!|\?)?
167 |
168 |
169 |
170 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
171 |
172 |
173 |
174 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
175 |
176 |
177 |
178 |
179 |
180 |
181 | (\s|^)(alias|var|struct)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
182 |
183 |
184 |
185 |
186 | \&[0-9]*
187 |
188 |
189 |
190 | %([A-Z](\w)*)?
191 |
192 |
193 |
194 | \#{.*?}
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
200 |
201 |
202 |
203 |
204 |
205 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
206 |
207 |
208 |
209 |
210 |
211 | (?<![\w\.])[0-9]+(?![\w\.])
212 |
213 |
214 |
215 |
216 | (?<![\w\.])\@[a-zA-Z_](\w)*
217 |
218 |
219 |
220 | (?<![\w])[A-Z](\w)*
221 |
222 |
223 |
224 | do
225 | when
226 | end
227 |
228 |
229 |
230 | true
231 | false
232 | nil
233 |
234 |
235 |
236 | alias|import|require
237 | case
238 | fn
239 | receive|after
240 | try|catch|rescue
241 | super
242 | quote|unquote|unquote_splicing
243 | for
244 | with
245 |
246 | __CALLER__
247 | __DIR__
248 | __ENV__
249 | __MODULE__
250 | __STACKTRACE__
251 | __aliases__
252 | __block__
253 |
254 |
255 |
256 | abs|trunc|rem|div|round|max|min|floor|ceil
257 | and|or|not
258 | throw|raise|reraise
259 | hd|tl|in|length|elem|put_elem|destructure
260 | to_(string|charlist)
261 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)
262 | (bit|byte|map|tuple)_size
263 | binary_part
264 | def(delegate|exception|guard|guardp|impl|macro|macrop|module|overridable|p|protocol|struct)?
265 | sigil_[crswCRSWDNT]
266 | if|else|unless|cond
267 | binding
268 | node|self|spawn|spawn_link|spawn_monitor|send|exit
269 | struct|get_and_update_in|get_in|put_in|pop_in|update_in
270 | apply|inspect|make_ref|use
271 |
272 |
273 |
274 |
275 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 | ExUnit
284 |
285 |
286 | (doc)?test
287 | describe
288 | assert(_in_delta|_raise|_receive|_received)?
289 | refute(_in_delta|_receive|_received)?
290 | flunk
291 | catch(_error|_exit|_throw)
292 | setup(_all)?
293 | on_exit
294 | capture(_io|_log)
295 | register(_attribute|_test)
296 | using
297 | (start|stop)_supervised
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.9.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSWDTNU])?"""
66 | ^\s*"""
67 |
68 |
69 |
70 | (~[crswCRSWDTNU])?'''
71 | ^\s*'''
72 |
73 |
74 |
75 | " "
76 |
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | ~[crsw]\( \)[fgimrsuxbac]*
94 |
95 |
96 |
97 |
98 |
99 |
100 | ~[crsw]\[ \][fgimrsuxbac]*
101 |
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\{ \}[fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 |
114 | ~[crsw]< >[fgimrsuxbac]*
115 |
116 |
117 |
118 |
119 |
120 |
121 | ~[crsw]\| \|[fgimrsuxbac]*
122 |
123 |
124 |
125 |
126 |
127 |
128 | ~[crsw]/ /[fgimrsuxbac]*
129 |
130 |
131 |
132 |
133 |
134 |
135 | ~[crsw]" "[fgimrsuxbac]*
136 |
137 |
138 |
139 |
140 |
141 |
142 | ~[crsw]' '[fgimrsuxbac]*
143 |
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSWDTNU](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
165 |
166 | \:[a-zA-Z_](\w)*(!|\?)?
167 |
168 |
169 |
170 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
171 |
172 |
173 |
174 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
175 |
176 |
177 |
178 |
179 |
180 |
181 | (\s|^)(alias|var|struct)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
182 |
183 |
184 |
185 |
186 | \&[0-9]*
187 |
188 |
189 |
190 | %([A-Z](\w)*)?
191 |
192 |
193 |
194 | \#{.*?}
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
200 |
201 |
202 |
203 |
204 |
205 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
206 |
207 |
208 |
209 |
210 |
211 | (?<![\w\.])[0-9]+(?![\w\.])
212 |
213 |
214 |
215 |
216 | (?<![\w\.])\@[a-zA-Z_](\w)*
217 |
218 |
219 |
220 | (?<![\w])[A-Z](\w)*
221 |
222 |
223 |
224 | do
225 | when
226 | end
227 |
228 |
229 |
230 | true
231 | false
232 | nil
233 |
234 |
235 |
236 | alias|import|require
237 | case
238 | fn
239 | receive|after
240 | try|catch|rescue
241 | super
242 | quote|unquote|unquote_splicing
243 | for
244 | with
245 |
246 | __CALLER__
247 | __DIR__
248 | __ENV__
249 | __MODULE__
250 | __STACKTRACE__
251 | __aliases__
252 | __block__
253 |
254 |
255 |
256 | abs|trunc|rem|div|round|max|min|floor|ceil
257 | and|or|not
258 | throw|raise|reraise
259 | hd|tl|in|length|elem|put_elem|destructure
260 | to_(string|charlist)
261 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|nil|number|pid|port|reference|tuple)
262 | (bit|byte|map|tuple)_size
263 | binary_part
264 | def(delegate|exception|guard|guardp|impl|macro|macrop|module|overridable|p|protocol|struct)?
265 | sigil_[crswCRSWDNTU]
266 | if|else|unless|cond
267 | binding
268 | node|self|spawn|spawn_link|spawn_monitor|send|exit
269 | struct|get_and_update_in|get_in|put_in|pop_in|update_in
270 | apply|inspect|make_ref|use
271 |
272 |
273 |
274 |
275 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 | ExUnit
284 |
285 |
286 | (doc)?test
287 | describe
288 | assert(_in_delta|_raise|_receive|_received)?
289 | refute(_in_delta|_receive|_received)?
290 | flunk
291 | catch(_error|_exit|_throw)
292 | setup(_all)?
293 | on_exit
294 | capture(_io|_log)
295 | register(_attribute|_test)
296 | using
297 | (start|stop)_supervised
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
--------------------------------------------------------------------------------
/old_versions/elixir_1.10.x.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSWDTNU])?"""
66 | ^\s*"""
67 |
68 |
69 |
70 | (~[crswCRSWDTNU])?'''
71 | ^\s*'''
72 |
73 |
74 |
75 | " "
76 |
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | ~[crsw]\( \)[fgimrsuxbac]*
94 |
95 |
96 |
97 |
98 |
99 |
100 | ~[crsw]\[ \][fgimrsuxbac]*
101 |
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\{ \}[fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 |
114 | ~[crsw]< >[fgimrsuxbac]*
115 |
116 |
117 |
118 |
119 |
120 |
121 | ~[crsw]\| \|[fgimrsuxbac]*
122 |
123 |
124 |
125 |
126 |
127 |
128 | ~[crsw]/ /[fgimrsuxbac]*
129 |
130 |
131 |
132 |
133 |
134 |
135 | ~[crsw]" "[fgimrsuxbac]*
136 |
137 |
138 |
139 |
140 |
141 |
142 | ~[crsw]' '[fgimrsuxbac]*
143 |
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSWDTNU](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
165 |
166 | \:[a-zA-Z_](\w)*(!|\?)?
167 |
168 |
169 |
170 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
171 |
172 |
173 |
174 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
175 |
176 |
177 |
178 |
179 |
180 |
181 | (\s|^)(alias|var|struct)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
182 |
183 |
184 |
185 |
186 | \&[0-9]*
187 |
188 |
189 |
190 | %([A-Z](\w)*)?
191 |
192 |
193 |
194 | \#{.*?}
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
200 |
201 |
202 |
203 |
204 |
205 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
206 |
207 |
208 |
209 |
210 |
211 | (?<![\w\.])[0-9]+(?![\w\.])
212 |
213 |
214 |
215 |
216 | (?<![\w\.])\@[a-zA-Z_](\w)*
217 |
218 |
219 |
220 | (?<![\w])[A-Z](\w)*
221 |
222 |
223 |
224 | do
225 | when
226 | end
227 |
228 |
229 |
230 | true
231 | false
232 | nil
233 |
234 |
235 |
236 | alias|import|require
237 | case
238 | fn
239 | receive|after
240 | try|catch|rescue
241 | super
242 | quote|unquote|unquote_splicing
243 | for
244 | with
245 |
246 | __CALLER__
247 | __DIR__
248 | __ENV__
249 | __MODULE__
250 | __STACKTRACE__
251 | __aliases__
252 | __block__
253 |
254 |
255 |
256 | abs|trunc|rem|div|round|max|min|floor|ceil
257 | and|or|not
258 | throw|raise|reraise
259 | hd|tl|in|length|elem|put_elem|destructure
260 | to_(string|charlist)
261 | is_(atom|binary|bitstring|boolean|float|function|integer|list|map|map_key|nil|number|pid|port|reference|struct|tuple)
262 | (bit|byte|map|tuple)_size
263 | binary_part
264 | def(delegate|exception|guard|guardp|impl|macro|macrop|module|overridable|p|protocol|struct)?
265 | sigil_[crswCRSWDNTU]
266 | if|else|unless|cond
267 | binding
268 | node|self|spawn|spawn_link|spawn_monitor|send|exit
269 | struct|get_and_update_in|get_in|put_in|pop_in|update_in
270 | apply|inspect|make_ref|use
271 |
272 |
273 |
274 |
275 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 | ExUnit
284 |
285 |
286 | (doc)?test
287 | describe
288 | assert(_in_delta|_raise|_receive|_received)?
289 | refute(_in_delta|_receive|_received)?
290 | flunk
291 | catch(_error|_exit|_throw)
292 | setup(_all)?
293 | on_exit
294 | capture(_io|_log)
295 | register(_attribute|_test)
296 | using
297 | (start|stop)_supervised
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
--------------------------------------------------------------------------------
/elixir.lang:
--------------------------------------------------------------------------------
1 |
2 |
24 |
25 |
32 |
33 |
34 |
35 |
36 | text/x-elixir
37 | *.exs;*.ex
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 | (~[crswCRSWDTNU])?"""
66 | ^\s*"""
67 |
68 |
69 |
70 | (~[crswCRSWDTNU])?'''
71 | ^\s*'''
72 |
73 |
74 |
75 | " "
76 |
77 |
78 |
79 |
80 |
81 |
82 | ' '
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | ~[crsw]\( \)[fgimrsuxbac]*
94 |
95 |
96 |
97 |
98 |
99 |
100 | ~[crsw]\[ \][fgimrsuxbac]*
101 |
102 |
103 |
104 |
105 |
106 |
107 | ~[crsw]\{ \}[fgimrsuxbac]*
108 |
109 |
110 |
111 |
112 |
113 |
114 | ~[crsw]< >[fgimrsuxbac]*
115 |
116 |
117 |
118 |
119 |
120 |
121 | ~[crsw]\| \|[fgimrsuxbac]*
122 |
123 |
124 |
125 |
126 |
127 |
128 | ~[crsw]/ /[fgimrsuxbac]*
129 |
130 |
131 |
132 |
133 |
134 |
135 | ~[crsw]" "[fgimrsuxbac]*
136 |
137 |
138 |
139 |
140 |
141 |
142 | ~[crsw]' '[fgimrsuxbac]*
143 |
144 |
145 |
146 |
147 |
148 |
149 | ~[CRSWDTNU](\((.)*?\)|\[(.)*?\]|\{(.)*?\}|<(.)*?>|\|(.)*?\||/(.)*/|"(.)*"|'(.)*')[fgimrsuxbac]*
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
165 |
166 | \:[a-zA-Z_](\w)*(!|\?)?
167 |
168 |
169 |
170 | (?<![\w\.])((\?.)|(\?\\.))(?![\w\.])
171 |
172 |
173 |
174 | \\u(([0-9a-fA-F]){4}|({[0-9a-fA-F]{1,6}}))
175 |
176 |
177 |
178 |
179 |
180 |
181 | (\s|^)(alias|var|struct)\!|(\s|^)(match|(function|macro)_exported)\?|(\^(?=[\w]+))|((\\|&|\|){2})|((-|\=|\|)>)
182 |
183 |
184 |
185 |
186 | \&[0-9]*
187 |
188 |
189 |
190 | %([A-Z](\w)*)?
191 |
192 |
193 |
194 | \#{.*?}
195 |
196 |
197 |
198 |
199 | (?<![\w\.])[0-9]+\.[0-9]+([Ee][+-]?[0-9]+)?(?![\w\.])
200 |
201 |
202 |
203 |
204 |
205 | (?<![\w\.])0[oxb]?[0-9a-fA-F]+(?![\w\.])
206 |
207 |
208 |
209 |
210 |
211 | (?<![\w\.])[0-9]+(?![\w\.])
212 |
213 |
214 |
215 |
216 | (?<![\w\.])\@[a-zA-Z_](\w)*
217 |
218 |
219 |
220 | (?<![\w])[A-Z](\w)*
221 |
222 |
223 |
224 | do
225 | when
226 | end
227 |
228 |
229 |
230 | true
231 | false
232 | nil
233 |
234 |
235 |
236 | alias|import|require
237 | case
238 | fn
239 | receive|after
240 | try|catch|rescue
241 | super
242 | quote|unquote|unquote_splicing
243 | for
244 | with
245 |
246 | __CALLER__
247 | __DIR__
248 | __ENV__
249 | __MODULE__
250 | __STACKTRACE__
251 | __aliases__
252 | __block__
253 |
254 |
255 |
256 | abs|trunc|rem|div|round|max|min|floor|ceil
257 | and|or|not
258 | throw|raise|reraise
259 | hd|tl|in|length|elem|put_elem|destructure
260 | to_(string|charlist)
261 | is_(atom|binary|bitstring|boolean|exception|float|function|integer|list|map|map_key|nil|number|pid|port|reference|struct|tuple)
262 | (bit|byte|map|tuple)_size
263 | binary_(part|slice)
264 | def(delegate|exception|guard|guardp|impl|macro|macrop|module|overridable|p|protocol|struct)?
265 | sigil_[crswCRSWDNTU]
266 | if|else|unless|cond
267 | binding|dbg
268 | tap|then
269 | node|self|spawn|spawn_link|spawn_monitor|send|exit
270 | struct|get_and_update_in|get_in|put_in|pop_in|update_in
271 | apply|inspect|make_ref|use
272 |
273 |
274 |
275 |
276 | (?<![\w\.])[a-zA-Z_]*(\w)*(!|\?)?\:
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 | ExUnit
285 |
286 |
287 | test|doctest|doctest_file
288 | describe|get_last_registered_test
289 | register_(describe_attribute|module_attribute|attribute|test)
290 | assert(_in_delta|_raise|_receive|_received)?
291 | refute(_in_delta|_receive|_received)?
292 | catch_(error|exit|throw)
293 | flunk
294 | on_exit
295 | setup(_all)?
296 | start_(link_supervised|supervised)
297 | stop_supervised
298 | capture_(io|log)
299 | with_(io|log)
300 | using
301 | eval|failure_info|normalize|parse|parse_path
302 | format_(assertion_diff|filters|test_all_failure|test_failure|times)
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
--------------------------------------------------------------------------------