Skip to content

Commit 2600851

Browse files
committed
Use correct syntax highlighting for use/require/import
1 parent 12650e5 commit 2600851

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

elixir-mode.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@
356356
;; records and modules at point of definition:
357357
'("^\\s *def\\(module\\|record\\|protocol\\|impl\\)\\s +\\([^( \t\n,]+\\)" 2 font-lock-type-face)
358358

359+
;; use/require/import:
360+
'("^\\s *\\(use\\|require\\|import\\)\\s \\([^\n]+\\)" 2 font-lock-type-face)
361+
359362
;; methods:
360363
`(,(concat "^\\s *\\<" (regexp-opt elixir-mode-define-names t) "\\>\\s +\\([^( \t\n]+\\)") 2 font-lock-function-name-face)
361364

0 commit comments

Comments
 (0)