From cd89e584ae132c7a2fd70d5692ce8e1290df55a1 Mon Sep 17 00:00:00 2001 From: Ivan Gonzalez Polanco Date: Tue, 26 Feb 2019 17:49:17 -0400 Subject: [PATCH] Fix wrong highlight of paren after `defmodule` Added to `elixirModuleDeclaration` the exact same regex used in `elixirFunctionDeclaration`. --- syntax/elixir.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/elixir.vim b/syntax/elixir.vim index 41c1a3b6..0d9ead52 100644 --- a/syntax/elixir.vim +++ b/syntax/elixir.vim @@ -146,7 +146,7 @@ syn match elixirCallbackDefine '\\(:\)\@!' nextgroup=elix syn match elixirStructDefine '\\(:\)\@!' skipwhite skipnl " Declarations -syn match elixirModuleDeclaration "[^[:space:];#<]\+" contained nextgroup=elixirBlock skipwhite skipnl +syn match elixirModuleDeclaration "[^[:space:];#<,()\[\]]\+" contained nextgroup=elixirBlock skipwhite skipnl syn match elixirFunctionDeclaration "[^[:space:];#<,()\[\]]\+" contained nextgroup=elixirArguments skipwhite skipnl syn match elixirPrivateFunctionDeclaration "[^[:space:];#<,()\[\]]\+" contained nextgroup=elixirArguments skipwhite skipnl syn match elixirProtocolDeclaration "[^[:space:];#<]\+" contained contains=elixirAlias skipwhite skipnl