Skip to content

Commit 781e17f

Browse files
committed
Elixir: fix: function names can begin with a Unicode character or underscore.
1 parent 0110e18 commit 781e17f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Elixir.sublime-syntax

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,13 @@ contexts:
335335
pop: true
336336
- match: '{{module_name}}'
337337
scope: entity.name.protocol.elixir
338-
- match: '^\s*(def|defmacro)\s+([a-zA-Z_]\w*(?:!|\?)?)(?:(\()|\s*)'
338+
- match: '^\s*(def|defmacro)\s+(\w+(?:!|\?)?)(?:(\()|\s*)'
339339
captures:
340340
1: keyword.control.module.elixir
341341
2: entity.name.function.public.elixir
342342
3: punctuation.definition.parameters.elixir
343343
push: function_body
344-
- match: '^\s*(defp|defmacrop)\s+([a-zA-Z_]\w*(?:!|\?)?)(?:(\()|\s*)'
344+
- match: '^\s*(defp|defmacrop)\s+(\w+(?:!|\?)?)(?:(\()|\s*)'
345345
captures:
346346
1: keyword.control.module.elixir
347347
2: entity.name.function.private.elixir

0 commit comments

Comments
 (0)