[TxMt] Re: Javadoc snippet question

Thomas Krajacic tkrajacic at inode.at
Mon Apr 27 07:19:37 UTC 2009


Yes I am using latest version from svn but I found the problem:

enter this:

class something {
    private native void setInitValues(long modelPtr, double n1,
                                                     double n2,
                                                     double p2,
                                                     double p26,
                                                     double p3,
                                                     double wf,
                                                     double t44);
/** this is wrong because it starts in the fist line
  * @
  */
}

I mistakenly wrote my comment on the first line of the javadoc block.  
this seems to be wrong, as below it doesn't recognize it as javadoc  
block anymore.
This is my fault then I guess. don't know if it's forbidden to start  
writing in the first line.

But the syntax coloring for the method above still is wrong. it colors  
the methodname correctly when I write all the parameters in the same  
line.

On 27 Apr 2009, at 02:21, Luke Daley wrote:

>
> On 25/04/2009, at 3:21 AM, Thomas Krajacic wrote:
>
>> Ah I see the problem.(As usual just after posting :P )
>> The language grammar can't deal with method declarations like this:
>>
>> private native void setInitValues(long modelPtr, double n1,
>>                                                       double n2,
>>                                                       double p2,
>>                                                       double p26,
>>                                                       double p3,
>>                                                       double wf,
>>                                                       double t44);
>>
>> Where the parameters are indented (did it because of wrapping
>> requirements) the coloring is also wrong.
>> This is valid Java though....
>>
>> Maybe someone is up to the task fixing this.
>> Thank you!
>
> I am not seeing the same problem. Are you using the latest Java bundle
> from svn?
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate




More information about the textmate mailing list