summaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-02-07 11:55:10 -0800
committerJunio C Hamano <gitster@pobox.com>2014-02-07 11:55:10 -0800
commitc256661bbe09c842f7b6fe24986294d611f25200 (patch)
treec2445ea3675ec34008108213078b6963428f9713 /userdiff.c
parent53c2a5980ecd537a3cb76b748bac7760f7c96613 (diff)
parent39a87a29ce364ed3337e535adce5973731ba2968 (diff)
downloadgit-c256661bbe09c842f7b6fe24986294d611f25200.tar.gz
Merge branch 'aj/ada-diff-word-pattern'
* aj/ada-diff-word-pattern: userdiff: update Ada patterns
Diffstat (limited to 'userdiff.c')
-rw-r--r--userdiff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/userdiff.c b/userdiff.c
index ea43a0306f..10b61ec37d 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -15,13 +15,13 @@ static int drivers_alloc;
word_regex "|[^[:space:]]|[\xc0-\xff][\x80-\xbf]+" }
static struct userdiff_driver builtin_drivers[] = {
IPATTERN("ada",
- "!^(.*[ \t])?(is new|renames|is separate)([ \t].*)?$\n"
+ "!^(.*[ \t])?(is[ \t]+new|renames|is[ \t]+separate)([ \t].*)?$\n"
"!^[ \t]*with[ \t].*$\n"
"^[ \t]*((procedure|function)[ \t]+.*)$\n"
"^[ \t]*((package|protected|task)[ \t]+.*)$",
/* -- */
"[a-zA-Z][a-zA-Z0-9_]*"
- "|[0-9][-+0-9#_.eE]"
+ "|[-+]?[0-9][0-9#_.aAbBcCdDeEfF]*([eE][+-]?[0-9_]+)?"
"|=>|\\.\\.|\\*\\*|:=|/=|>=|<=|<<|>>|<>"),
IPATTERN("fortran",
"!^([C*]|[ \t]*!)\n"