From 54cd02b4bbe654fea892975d46cd9071a7fc891e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 10 Oct 2010 21:55:31 +1100 Subject: Fix for bug #1263788 LaTeX syntax wrong for \end {something} --- lexers/LexOthers.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') diff --git a/lexers/LexOthers.cxx b/lexers/LexOthers.cxx index c583c93a1..3449f07f6 100644 --- a/lexers/LexOthers.cxx +++ b/lexers/LexOthers.cxx @@ -1170,7 +1170,7 @@ static int isTag(int start, Accessor &styler) { while (i < 5 && e) { s[i] = styler[start + i]; i++; - e = styler[start + i] != '{'; + e = (strchr("{ \t", styler[start + i]) == NULL); } s[i] = '\0'; return (strcmp(s, "begin") == 0) || (strcmp(s, "end") == 0); -- cgit v1.2.3