SF.net SVN: geany:[3909] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Jul 4 09:17:32 UTC 2009


Revision: 3909
          http://geany.svn.sourceforge.net/geany/?rev=3909&view=rev
Author:   eht16
Date:     2009-07-04 09:17:32 +0000 (Sat, 04 Jul 2009)

Log Message:
-----------
Fix wrong parsing of complex expressions in the Lua parser.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tagmanager/lua.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-07-04 09:17:12 UTC (rev 3908)
+++ trunk/ChangeLog	2009-07-04 09:17:32 UTC (rev 3909)
@@ -2,6 +2,8 @@
 
  * src/build.c:
    Fix warnings when the toolbar does not contain the Run button.
+ * tagmanager/lua.c:
+   Fix wrong parsing of complex expressions in the Lua parser.
 
 
 2009-06-30  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/tagmanager/lua.c
===================================================================
--- trunk/tagmanager/lua.c	2009-07-04 09:17:12 UTC (rev 3908)
+++ trunk/tagmanager/lua.c	2009-07-04 09:17:32 UTC (rev 3909)
@@ -110,7 +110,7 @@
 			p = p + 9;  /* skip the `function' word */
 			q = strchr ((const char*) p, '(');
 			extract_name (p, q, name);
-		} else {
+		} else if (*(q+1) != '=') { /* ignore `if type(v) == "function" then ...' */
 			p = (const char*) &line[0];
 			extract_name (p, q, name);
 		}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list