[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [Dltk-dev] Outline Elements are jumping to the wrong position in	the Editor Hi, I'm working on the Outline View for the Lua	Editor and now I've the following problem. I use ANTLR 3.0	for the generation of the AST. The rule to detect a function	looks like: localFunctionDeclaration @init{ MethodDeclaration	m = null; } :f='local' 'function' n=NAME { m = new	MethodDeclaration(toDLTK(f),toDLTK(n)); decl.addStatement(m);	} funcbody[m] e='end' ;	Where decl is of type ModuleDeclaration and I use the toDLTK from the	Python grammar file. This is the only thing added to decl but	when selected in the Outline View it jumps not to the correct	line in the editor. Am I missing something. How detailed has	the AST to be? Nicolai Mainiero | 
Hi,
I'm working on the Outline View for the Lua Editor and now I've the  
following problem.
I use ANTLR 3.0 for the generation of the AST. The rule to detect a  
function looks like:
localFunctionDeclaration
@init{
	MethodDeclaration m = null;
}
	:	f='local' 'function'
		n=NAME {
			m = new MethodDeclaration(toDLTK(f),toDLTK(n));
			decl.addStatement(m);		
			}
		funcbody[m]
		e='end' ;
Where decl is of type ModuleDeclaration and I use the toDLTK from the  
Python grammar file.
This is the only thing added to decl but when selected in the Outline  
View it jumps not to the correct line in the editor. Am I missing  
something. How detailed has the AST to be?
Nicolai Mainiero