Murga-Projects Forums
Fluid Syntax Analysis Hack - Printable Version

+- Murga-Projects Forums (
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Fluid Syntax Analysis Hack (/showthread.php?tid=291)

Fluid Syntax Analysis Hack - iGame3D - 02-26-2008 09:55 AM

When making code blocks in Fluid it complains about curly braces and quotation marks.
Even if they are in lua comments or legal lua commands.

Tobi did a quick and dirty hack to prevent it from doing so.
Here's how its done.

In your fltk/fluid directory
is a file called Fl_Function_Type.cxx
search for this:

const char *c_check(

replace this function

const char *c_check(const char *c, int type) {
  return 0;//Hack by Tobias Opfermann, disables Fluid syntax analysis to enable use of other languages in the code blocks.
  //return _c_check(c,type);

then to rebuild

cd <fltk folder>
make clean
./configure --enable-xft