 +	int f = 0;
 +	lua_pushnumber(L, accessor->IndentAmount(luaL_checkinteger(L, 1), &f,	NULL));
 +	return 1;
-+}
-+
-+/**
-+ * Gets a range of text in a Scintilla document.
-+ * @param windowID The Scintilla window.
-+ * @param startPos The start position of the text region to get.
-+ * @param endPos The end position of text region to get.
-+ * @return text
-+ */
-+static char *textRange(WindowID windowID, unsigned int startPos,
-+	                     unsigned int endPos) {
-+	char *text = new char[endPos - startPos + 1];
-+	Sci_TextRange tr;
-+	tr.chrg.cpMin = startPos;
-+	tr.chrg.cpMax = endPos;
-+	tr.lpstrText = text;
-+	Platform::SendScintillaPointer(windowID, SCI_GETTEXTRANGE, 0, &tr);
-+	return tr.lpstrText;
 +}
 +
 +#define l_openlib(f, s) \

+			}
+		} lua_pop(L, 1); // value
+	} lua_pop(L, 2); // Styles and Lexer
+	
+	// if the lexer is a child, it will have a parent in its 'EmbeddedIn' field
+	lua_getglobal(L, "Lexer");
+	lua_getfield(L, -1, "EmbeddedIn");

 	return 1;
 }
--- scite-latest/scintilla/src/LexLPeg.cxx	1969-12-31 19:00:00.000000000 -0500
+++ scintillua/scintilla/src/LexLPeg.cxx	2010-03-30 22:49:18.000000000 -0400
@@ -0,0 +1,384 @@
+/*
+	Mitchell's Lua-powered dynamic lexer
+	Copyright (c) 2006-2007 Mitchell Foral. All rights reserved.
