aboutsummaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-25 10:40:11 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-25 10:40:11 -0700
commitc4eed8689b635e4c27759479afd656ea770607b7 (patch)
tree6707e3f8134a22da40e0248f167d3d1498654242 /userdiff.c
parentb1bb02dede05e26ae39908ae4ad35f011583bd50 (diff)
parente90d065e64702d09fbdfc7cfd1c97456c7faa74c (diff)
downloadgit-c4eed8689b635e4c27759479afd656ea770607b7.tar.xz
Merge branch 'aj/xfuncname-ada'
* aj/xfuncname-ada: Add userdiff patterns for Ada
Diffstat (limited to 'userdiff.c')
-rw-r--r--userdiff.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/userdiff.c b/userdiff.c
index 1e7184f7f0..ed958ef6b8 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -14,6 +14,15 @@ static int drivers_alloc;
{ name, NULL, -1, { pattern, REG_EXTENDED | REG_ICASE }, \
word_regex "|[^[:space:]]|[\xc0-\xff][\x80-\xbf]+" }
static struct userdiff_driver builtin_drivers[] = {
+IPATTERN("ada",
+ "!^(.*[ \t])?(is new|renames|is 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]"
+ "|=>|\\.\\.|\\*\\*|:=|/=|>=|<=|<<|>>|<>"),
IPATTERN("fortran",
"!^([C*]|[ \t]*!)\n"
"!^[ \t]*MODULE[ \t]+PROCEDURE[ \t]\n"