userdiff: match Pascal class methods

Class declarations were already covered by the second pattern, but class
methods have the 'class' keyword in front too. Account for it.

Signed-off-by: Alexey Shumkin <zapped@mail.ru>
Acked-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Alexey Shumkin 2011-01-11 11:53:59 +03:00 коммит произвёл Junio C Hamano
Родитель 2cf08b6a0a
Коммит ad5b6942d5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -52,7 +52,7 @@ PATTERNS("objc",
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->" "|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->"
"|[^[:space:]]|[\x80-\xff]+"), "|[^[:space:]]|[\x80-\xff]+"),
PATTERNS("pascal", PATTERNS("pascal",
"^((procedure|function|constructor|destructor|interface|" "^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface|"
"implementation|initialization|finalization)[ \t]*.*)$" "implementation|initialization|finalization)[ \t]*.*)$"
"\n" "\n"
"^(.*=[ \t]*(class|record).*)$", "^(.*=[ \t]*(class|record).*)$",