summaryrefslogtreecommitdiff
path: root/src/userdiff.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-01-27 14:57:03 -0800
committerRussell Belfer <rb@github.com>2014-01-27 14:57:03 -0800
commitdaebb598690c47600cf033be77acaad1ae8c4a70 (patch)
treec9d8a2124b4b47768d3e95defb1e5900db53bddf /src/userdiff.h
parent082e82dba5b5174756b3a5fc2e385ccc59626164 (diff)
downloadlibgit2-daebb598690c47600cf033be77acaad1ae8c4a70.tar.gz
Add PHP tests and fix bug in PHP builtin driver
Diffstat (limited to 'src/userdiff.h')
-rw-r--r--src/userdiff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userdiff.h b/src/userdiff.h
index 2257035ac..9318b5476 100644
--- a/src/userdiff.h
+++ b/src/userdiff.h
@@ -186,7 +186,7 @@ PATTERNS("csharp",
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->"),
PATTERNS("php",
- "^[ \t]*((public|private|protected|static|final)[ \t]+)*((class|function)[ \t].*)$",
+ "^[ \t]*(((public|private|protected|static|final)[ \t]+)*((class|function)[ \t].*))$",
/* -- */
"[a-zA-Z_][a-zA-Z0-9_]*"
"|[-+0-9.e]+[fFlL]?|0[xX]?[0-9a-fA-F]+[lL]?"