[anjuta] language-support-cpp-java: Better expression parsing (bgo#608499)



commit 3fac99fbd8509b448b6729f7bc70bb08154f9052
Author: Johannes Schmid <jhs idefix localdomain>
Date:   Tue Mar 2 10:21:48 2010 +0100

    language-support-cpp-java: Better expression parsing (bgo#608499)

 .../language-support-cpp-java/cpp-java-assist.c    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index 50fd606..bbcd120 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -785,7 +785,7 @@ is_expression_separator (gchar c, gboolean skip_braces, IAnjutaIterable* iter)
 	else if (c == ')' && !skip_braces)
 		return FALSE;
 	
-	if (c == ';' || c == '\n' || c == '\r' || c == '\t' ||
+	if (c == ',' || c == ';' || c == '\n' || c == '\r' || c == '\t' || c == '(' ||
 	    c == '{' || c == '}' || c == '=' || c == '<' || c == '\v' || c == '!')
 	{
 		return TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]