зеркало из https://github.com/microsoft/git.git
Merge branch 'bs/userdiff-php' into maint
* bs/userdiff-php: diff: Support visibility modifiers in the PHP hunk header regexp
This commit is contained in:
Коммит
065a652d64
|
@ -44,7 +44,9 @@ PATTERNS("pascal",
|
|||
"|[-+0-9.e]+|0[xXbB]?[0-9a-fA-F]+"
|
||||
"|<>|<=|>=|:=|\\.\\."
|
||||
"|[^[:space:]]|[\x80-\xff]+"),
|
||||
PATTERNS("php", "^[\t ]*((function|class).*)",
|
||||
PATTERNS("php",
|
||||
"^[\t ]*(((public|protected|private|static)[\t ]+)*function.*)$\n"
|
||||
"^[\t ]*(class.*)$",
|
||||
/* -- */
|
||||
"[a-zA-Z_][a-zA-Z0-9_]*"
|
||||
"|[-+0-9.e]+|0[xXbB]?[0-9a-fA-F]+"
|
||||
|
|
Загрузка…
Ссылка в новой задаче