summaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-12-25 19:21:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-12-25 19:21:59 (GMT)
commitba6b66281ebc8d863c2b0fb27ede640e4f212dd9 (patch)
tree07666f6eef10a5f960d0a3bce3c97fdb391f680d /userdiff.c
parentbd72a08d6ce451e7d4725d6b3b411d482333e5cb (diff)
parentd1b1384d6163efb85c3a93ee535cd795d92fec21 (diff)
downloadgit-ba6b66281ebc8d863c2b0fb27ede640e4f212dd9.zip
git-ba6b66281ebc8d863c2b0fb27ede640e4f212dd9.tar.gz
git-ba6b66281ebc8d863c2b0fb27ede640e4f212dd9.tar.bz2
Merge branch 'ln/userdiff-elixir'
Hotfix. * ln/userdiff-elixir: userdiff: remove empty subexpression from elixir regex
Diffstat (limited to 'userdiff.c')
-rw-r--r--userdiff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/userdiff.c b/userdiff.c
index 324916f..efbe05e 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 */