Skip to content

Commit 0110e18

Browse files
committed
Elixir: fix: atoms can also begin with a Unicode character or underscore.
1 parent 7dd0671 commit 0110e18

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
@@ -480,12 +480,12 @@ contexts:
480480
pop: true
481481
- include: interpolated_elixir
482482
- include: escaped_char
483-
- match: '(?<!:)(:)(?>[a-zA-Z_][\w@]*(?>[?!]|=(?![>=]))?|\<\>|===?|!==?|<<>>|<<<|>>>|~~~|::|<\-|\|>|=>|=~|=|/|\\\\|\*\*?|\.\.?\.?|>=?|<=?|&&?&?|\+\+?|\-\-?|\|\|?\|?|\!|@|\%?\{\}|%|\[\]|\^(\^\^)?)'
483+
- match: '(?<!:)(:)(?>[_[:alpha:]][\w@]*(?>[?!]|=(?![>=]))?|\<\>|===?|!==?|<<>>|<<<|>>>|~~~|::|<\-|\|>|=>|=~|=|/|\\\\|\*\*?|\.\.?\.?|>=?|<=?|&&?&?|\+\+?|\-\-?|\|\|?\|?|\!|@|\%?\{\}|%|\[\]|\^(\^\^)?)'
484484
comment: symbols
485485
scope: constant.other.symbol.elixir
486486
captures:
487487
1: punctuation.definition.constant.elixir
488-
- match: '(?>[a-zA-Z_][\w@]*(?>[?!])?)(:)(?!:)'
488+
- match: '(?>[_[:alpha:]][\w@]*(?>[?!])?)(:)(?!:)'
489489
comment: symbols
490490
scope: constant.other.keywords.elixir
491491
captures:

0 commit comments

Comments
 (0)