]> git.proxmox.com Git - libgit2.git/commitdiff
userdiff: update ada patterns
authorJeff King <peff@peff.net>
Tue, 8 Apr 2014 22:40:05 +0000 (18:40 -0400)
committerJeff King <peff@peff.net>
Tue, 8 Apr 2014 22:46:56 +0000 (18:46 -0400)
This is the moral equivalent of

  git/git@39a87a29ce364ed3337e535adce5973731ba2968

from Adrian Johnson <ajohnson@redneon.com>.

src/userdiff.h

index bd6943361190449ea1fb21bbcb98210421fc0a75..523f2f8d4eeea44517c453a2418f291e9b98e94d 100644 (file)
@@ -45,13 +45,13 @@ typedef struct {
 static git_diff_driver_definition builtin_defs[] = {
 
 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",