diff options
| author | Russell Belfer <rb@github.com> | 2014-01-28 16:25:42 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2014-01-30 09:59:59 -0800 |
| commit | e9d5e5f3d41846b5f3be1bfb6a5cb1e501f428c8 (patch) | |
| tree | 870612e753d9eac5be8e591423a5755c3ba87e0f /src/userdiff.h | |
| parent | 3cf11eef17d8359c032844de945da6e983572ecc (diff) | |
| download | libgit2-e9d5e5f3d41846b5f3be1bfb6a5cb1e501f428c8.tar.gz | |
Some fixes for Windows x64 warnings
Diffstat (limited to 'src/userdiff.h')
| -rw-r--r-- | src/userdiff.h | 6 |
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]?" |
