[PATCH 3/4] userdiff: fix typo in ruby word regex

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Rast
Date: Wednesday, December 15, 2010 - 8:13 am

The regex had an unclosed ] that pretty much ruined the safeguard
against not matching a non-space char.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---
 userdiff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/userdiff.c b/userdiff.c
index f9e05b5..4d6433b 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -81,7 +81,7 @@
 	 "(@|@@|\\$)?[a-zA-Z_][a-zA-Z0-9_]*"
 	 "|[-+0-9.e]+|0[xXbB]?[0-9a-fA-F]+|\\?(\\\\C-)?(\\\\M-)?."
 	 "|//=?|[-+*/<>%&^|=!]=|<<=?|>>=?|===|\\.{1,3}|::|[!=]~"
-	 "|[^[:space:]|[\x80-\xff]+"),
+	 "|[^[:space:]]|[\x80-\xff]+"),
 PATTERNS("bibtex", "(@[a-zA-Z]{1,}[ \t]*\\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
 	 "[={}\"]|[^={}\" \t]+"),
 PATTERNS("tex", "^(\\\\((sub)*section|chapter|part)\\*{0,1}\\{.*)$",
-- 
1.7.3.3.807.g6ee1f

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
html userdiff is not showing all my changes, Scott Johnson, (Tue Dec 14, 8:47 pm)
Re: html userdiff is not showing all my changes, Michael J Gruber, (Wed Dec 15, 2:06 am)
Re: html userdiff is not showing all my changes, Matthijs Kooijman, (Wed Dec 15, 2:12 am)
Re: html userdiff is not showing all my changes, Michael J Gruber, (Wed Dec 15, 2:29 am)
[PATCH 0/4] --word-regex sanity checking and such, Thomas Rast, (Wed Dec 15, 8:13 am)
[PATCH 3/4] userdiff: fix typo in ruby word regex, Thomas Rast, (Wed Dec 15, 8:13 am)
Re: [PATCH 0/4] --word-regex sanity checking and such, Thomas Rast, (Wed Dec 15, 12:51 pm)
Re: [PATCH 0/4] --word-regex sanity checking and such, Scott Johnson, (Wed Dec 15, 1:48 pm)
[PATCH v2 0/4] --word-regex sanity checking and such, Thomas Rast, (Sat Dec 18, 9:17 am)
Re: [PATCH v2 0/4] --word-regex sanity checking and such, Junio C Hamano, (Sat Dec 18, 1:48 pm)