From c2fd02b0c2262e68209d853a467083a52dd0d8a4 Mon Sep 17 00:00:00 2001 From: Duff OMelia Date: Mon, 28 Mar 2022 11:05:05 -0400 Subject: [PATCH] Add defn syntax highlighting Fixes #550. --- syntax/elixir.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax/elixir.vim b/syntax/elixir.vim index c8e56ca..95a1f11 100644 --- a/syntax/elixir.vim +++ b/syntax/elixir.vim @@ -145,6 +145,7 @@ syn region elixirDocString matchgroup=elixirDocSigilDelimiter start=+\%(@\w*doc " Defines syn match elixirDefine '\\(:\)\@!' nextgroup=elixirFunctionDeclaration skipwhite skipnl syn match elixirPrivateDefine '\\(:\)\@!' nextgroup=elixirPrivateFunctionDeclaration skipwhite skipnl +syn match elixirNumericalDefine '\\(:\)\@!' nextgroup=elixirFunctionDeclaration skipwhite skipnl syn match elixirGuard '\\(:\)\@!' nextgroup=elixirFunctionDeclaration skipwhite skipnl syn match elixirPrivateGuard '\\(:\)\@!' nextgroup=elixirPrivateFunctionDeclaration skipwhite skipnl syn match elixirModuleDefine '\\(:\)\@!' nextgroup=elixirModuleDeclaration skipwhite skipnl @@ -187,6 +188,7 @@ syn sync minlines=2000 hi def link elixirBlockDefinition Define hi def link elixirDefine Define hi def link elixirPrivateDefine Define +hi def link elixirNumericalDefine Define hi def link elixirGuard Define hi def link elixirPrivateGuard Define hi def link elixirModuleDefine Define