Skip to content

Commit edf880c

Browse files
authored
Merge pull request #561 from duff/master
Add defn syntax highlighting
2 parents 5aea793 + c2fd02b commit edf880c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

syntax/elixir.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ syn region elixirDocString matchgroup=elixirDocSigilDelimiter start=+\%(@\w*doc
145145
" Defines
146146
syn match elixirDefine '\<def\>\(:\)\@!' nextgroup=elixirFunctionDeclaration skipwhite skipnl
147147
syn match elixirPrivateDefine '\<defp\>\(:\)\@!' nextgroup=elixirPrivateFunctionDeclaration skipwhite skipnl
148+
syn match elixirNumericalDefine '\<defn\>\(:\)\@!' nextgroup=elixirFunctionDeclaration skipwhite skipnl
148149
syn match elixirGuard '\<defguard\>\(:\)\@!' nextgroup=elixirFunctionDeclaration skipwhite skipnl
149150
syn match elixirPrivateGuard '\<defguardp\>\(:\)\@!' nextgroup=elixirPrivateFunctionDeclaration skipwhite skipnl
150151
syn match elixirModuleDefine '\<defmodule\>\(:\)\@!' nextgroup=elixirModuleDeclaration skipwhite skipnl
@@ -187,6 +188,7 @@ syn sync minlines=2000
187188
hi def link elixirBlockDefinition Define
188189
hi def link elixirDefine Define
189190
hi def link elixirPrivateDefine Define
191+
hi def link elixirNumericalDefine Define
190192
hi def link elixirGuard Define
191193
hi def link elixirPrivateGuard Define
192194
hi def link elixirModuleDefine Define

0 commit comments

Comments
 (0)