From: <sh...@us...> - 2007-01-17 14:49:40
|
Revision: 8606 http://svn.sourceforge.net/jedit/?rev=8606&view=rev Author: shlomy Date: 2007-01-17 06:49:22 -0800 (Wed, 17 Jan 2007) Log Message: ----------- Fix the end position of a tag when the next tag is on the same line. Modified Paths: -------------- plugins/CtagsSideKick/trunk/ctags/sidekick/LinePosition.java plugins/CtagsSideKick/trunk/ctags/sidekick/Parser.java Modified: plugins/CtagsSideKick/trunk/ctags/sidekick/LinePosition.java =================================================================== --- plugins/CtagsSideKick/trunk/ctags/sidekick/LinePosition.java 2007-01-17 11:25:11 UTC (rev 8605) +++ plugins/CtagsSideKick/trunk/ctags/sidekick/LinePosition.java 2007-01-17 14:49:22 UTC (rev 8606) @@ -68,6 +68,17 @@ catch (Exception e) { Log.log(Log.ERROR, this, e); + StringBuffer sb = new StringBuffer( + "Exception occurred for " + + buffer.getPath() + ":" + line + " "); + if (eob) + sb.append("eob"); + else if (mid) + sb.append("mid:" + linePos); + else if (begin) + sb.append("begin"); + else sb.append("end"); + Log.log(Log.ERROR, this, sb.toString()); } } return 0; Modified: plugins/CtagsSideKick/trunk/ctags/sidekick/Parser.java =================================================================== --- plugins/CtagsSideKick/trunk/ctags/sidekick/Parser.java 2007-01-17 11:25:11 UTC (rev 8605) +++ plugins/CtagsSideKick/trunk/ctags/sidekick/Parser.java 2007-01-17 14:49:22 UTC (rev 8606) @@ -178,7 +178,7 @@ prevEnd = new LinePosition(buffer, curLine, false); else { - prevEnd = new LinePosition(buffer, curLine, pos - 1); + prevEnd = new LinePosition(buffer, curLine, pos); curTag.setStart( new LinePosition(buffer, curLine, pos)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |