summaryrefslogtreecommitdiff
path: root/src/userdiff.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-01-28 16:25:42 -0800
committerRussell Belfer <rb@github.com>2014-01-30 09:59:59 -0800
commite9d5e5f3d41846b5f3be1bfb6a5cb1e501f428c8 (patch)
tree870612e753d9eac5be8e591423a5755c3ba87e0f /src/userdiff.h
parent3cf11eef17d8359c032844de945da6e983572ecc (diff)
downloadlibgit2-e9d5e5f3d41846b5f3be1bfb6a5cb1e501f428c8.tar.gz
Some fixes for Windows x64 warnings
Diffstat (limited to 'src/userdiff.h')
-rw-r--r--src/userdiff.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/userdiff.h b/src/userdiff.h
index 9318b5476..7eb095246 100644
--- a/src/userdiff.h
+++ b/src/userdiff.h
@@ -193,9 +193,9 @@ PATTERNS("php",
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->"),
PATTERNS("javascript",
- "^[ \t]*(function[ \t][a-zA-Z_][^\{]*)\n"
- "^[ \t]*(var[ \t]+[a-zA-Z_][a-zA-Z0-9_]*[ \t]*=[ \t]*function[ \t\(][^\{]*)\n"
- "^[ \t]*([a-zA-Z_][a-zA-Z0-9_]*[ \t]*:[ \t]*function[ \t\(][^\{]*)",
+ "^[ \t]*(function[ \t][a-zA-Z_][^\\{]*)\n"
+ "^[ \t]*(var[ \t]+[a-zA-Z_][a-zA-Z0-9_]*[ \t]*=[ \t]*function[ \t\\(][^\\{]*)\n"
+ "^[ \t]*([a-zA-Z_][a-zA-Z0-9_]*[ \t]*:[ \t]*function[ \t\\(][^\\{]*)",
/* -- */
"[a-zA-Z_][a-zA-Z0-9_]*"
"|[-+0-9.e]+[fFlL]?|0[xX]?[0-9a-fA-F]+[lL]?"