зеркало из https://github.com/microsoft/git.git
Merge branch 'js/userdiff-php'
Userdiff for PHP update. * js/userdiff-php: userdiff: PHP: catch "abstract" and "final" functions
This commit is contained in:
Коммит
a8a49ebf61
|
@ -0,0 +1,7 @@
|
|||
abstract class Klass
|
||||
{
|
||||
abstract public function RIGHT(): ?string
|
||||
{
|
||||
return 'ChangeMe';
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
class Klass
|
||||
{
|
||||
final public function RIGHT(): string
|
||||
{
|
||||
return 'ChangeMe';
|
||||
}
|
||||
}
|
|
@ -147,7 +147,7 @@ PATTERNS("perl",
|
|||
"|=~|!~"
|
||||
"|<<|<>|<=>|>>"),
|
||||
PATTERNS("php",
|
||||
"^[\t ]*(((public|protected|private|static)[\t ]+)*function.*)$\n"
|
||||
"^[\t ]*(((public|protected|private|static|abstract|final)[\t ]+)*function.*)$\n"
|
||||
"^[\t ]*((((final|abstract)[\t ]+)?class|interface|trait).*)$",
|
||||
/* -- */
|
||||
"[a-zA-Z_][a-zA-Z0-9_]*"
|
||||
|
|
Загрузка…
Ссылка в новой задаче