Re: ta and running java classes

From: morchel <morc....at.hotmail.com>
Date: Mon, 22 Jun 2009 18:08:28 -0700 (PDT)

Mitchell,

The regular expression you use ('package%s+([^;]+)') would also match
commented out package declarations (like '//package org.foo;').

currently I use the following (I put that in the wiki too):

local package = buffer_text:match('^%s*package%s+([^;]+)') -- first
line
if not package then package = buffer_text:match('\n%s*package%s+([^;]
+)') end

Still, a package declaration within a multiline comment could get
chosen over the actual one
Received on Mon 22 Jun 2009 - 21:08:28 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:38:10 EST