Skip to content

Commit d5d4400

Browse files
dreamtigersjbodah
authored andcommitted
Fix wrong highlight of paren after defmodule (#478)
Added to `elixirModuleDeclaration` the exact same regex used in `elixirFunctionDeclaration`.
1 parent b6990d9 commit d5d4400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/elixir.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ syn match elixirCallbackDefine '\<defcallback\>\(:\)\@!' nextgroup=elix
146146
syn match elixirStructDefine '\<defstruct\>\(:\)\@!' skipwhite skipnl
147147

148148
" Declarations
149-
syn match elixirModuleDeclaration "[^[:space:];#<]\+" contained nextgroup=elixirBlock skipwhite skipnl
149+
syn match elixirModuleDeclaration "[^[:space:];#<,()\[\]]\+" contained nextgroup=elixirBlock skipwhite skipnl
150150
syn match elixirFunctionDeclaration "[^[:space:];#<,()\[\]]\+" contained nextgroup=elixirArguments skipwhite skipnl
151151
syn match elixirPrivateFunctionDeclaration "[^[:space:];#<,()\[\]]\+" contained nextgroup=elixirArguments skipwhite skipnl
152152
syn match elixirProtocolDeclaration "[^[:space:];#<]\+" contained contains=elixirAlias skipwhite skipnl

0 commit comments

Comments
 (0)