diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-12-25 11:21:59 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-25 11:21:59 -0800 |
commit | ba6b66281ebc8d863c2b0fb27ede640e4f212dd9 (patch) | |
tree | 07666f6eef10a5f960d0a3bce3c97fdb391f680d | |
parent | Merge branch 'ds/sparse-cone' (diff) | |
parent | userdiff: remove empty subexpression from elixir regex (diff) | |
download | tgif-ba6b66281ebc8d863c2b0fb27ede640e4f212dd9.tar.xz |
Merge branch 'ln/userdiff-elixir'
Hotfix.
* ln/userdiff-elixir:
userdiff: remove empty subexpression from elixir regex
-rw-r--r-- | userdiff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/userdiff.c b/userdiff.c index 324916f20f..efbe05e5a5 100644 --- a/userdiff.c +++ b/userdiff.c @@ -34,8 +34,9 @@ PATTERNS("dts", "|[-+*/%&^|!~]|>>|<<|&&|\\|\\|"), PATTERNS("elixir", "^[ \t]*((def(macro|module|impl|protocol|p)?|test)[ \t].*)$", + /* -- */ /* Atoms, names, and module attributes */ - "|[@:]?[a-zA-Z0-9@_?!]+" + "[@:]?[a-zA-Z0-9@_?!]+" /* Numbers with specific base */ "|[-+]?0[xob][0-9a-fA-F]+" /* Numbers */ |