Skip to content

Commit 72cd6ca

Browse files
committed
Modules don't with underscore
1 parent 8424d7f commit 72cd6ca

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## v2.3.0-dev (unreleased)
44

5+
### Bugfixes
6+
7+
* [Syntax Highlighting] Modules don't start with underscore. This fix corrects the fontification of private function.
8+
59
## v2.2.0 2014/12/31
610

711
### Enhancements

elixir-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,14 @@ for the Elixir programming language."
245245
(keyword-operator . ,(rx symbol-start
246246
(or "not" "and" "or" "when" "in")
247247
symbol-end))
248-
;; Module and submodule names start with upper case letter or `_'. This
249-
;; can then be followed by any combination of alphanumeric chars + `_'.
248+
;; Module and submodule names start with upper case letter. This
249+
;; can then be followed by any combination of alphanumeric chars.
250250
;; In turn, this can be followed by a `.' which begins the notation of
251251
;; a submodule, which follows the same naming pattern of the module.
252252
;; Finally, like other identifiers, it can be terminated with either `?'
253253
;; or `!'.
254254
(module-names . ,(rx symbol-start
255-
(one-or-more (any "A-Z" "_"))
255+
(one-or-more (any "A-Z"))
256256
(zero-or-more (any "A-Z" "a-z" "_" "0-9"))
257257
(zero-or-more
258258
(and "."

0 commit comments

Comments
 (0)