=?gb2312?q?=BB=D8=B8=B4=A3=BA=20Re:=20[antlr-interest]=20token=20position?= =?gb2312?q?=20detection=20problem?=

=?gb2312?q?=CB=EF=BC=CD=B8=D5=20Jigang=20(Robert)=20Sun?= sunjigang1965 at yahoo.com.cn
Mon May 1 14:00:12 PDT 2006


As showed on the attached picture, in the 4th line "	System.out.println(8);", the position of '8'
is detected as line = 4, column=28,the only TAB character before "System" is conted as 8 spaces; I
made an exact  same text by copy and paste,this time the position of 8 inside method add is
line=17, column=24, the TAB inside is counted as 4 correctly.

Thanks.

Jigang




--- Bryan Ewbank <ewbank at gmail.com>дµÀ:

> Can you describe the places where TAB is not being correctly set?
> 
> Perhaps it's always the second (and following) tabs?
> Perhaps just tabs that are not in the leading whitespace of a line?
> Perhaps just tabs within comments?
> Perhaps there's a rule that uses \t instead of TAB?
> 
> There must be some regularity to the problem.  Finding it that may be
> hard, but it must be there.
> 
> 
> 
> On 5/1/06, Ëï¼Í¸Õ Jigang (Robert) Sun <sunjigang1965 at yahoo.com.cn> wrote:
> > I have set one TAB occupies 4 spaces by doing '\t' {setTabSize(4);} in
> > lexer grammar. It is not always working, some TABs are still counted as 8,
> > while some are taken as 4 as expected.
> 


	

	
		
___________________________________________________________ 
ÑÅ»¢1GÃâ·ÑÓÊÏä°Ù·Ö°Ù·ÀÀ¬»øÐÅ 
http://cn.mail.yahoo.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled-2.gif
Type: image/gif
Size: 6956 bytes
Desc: 1276105912-Untitled-2.gif
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20060502/73a743e7/Untitled-2.gif


More information about the antlr-interest mailing list