codesurgeon icon indicating copy to clipboard operation
codesurgeon copied to clipboard

codesurgeon fails to extract variables

Open 3rd-Eden opened this issue 12 years ago • 4 comments

Hi,

I'm using codesurgeon to extract code from files, but it fails to extra variables that are not prefixed with a var statement.

Example

var foo = 'bar'
  , bar = 'foo';

Codesurgeon cannot extract the bar var above, unless the code is written as:

var foo = 'bar';
var bar = 'foo';

3rd-Eden avatar Apr 08 '12 18:04 3rd-Eden

ah interesting. ok looking at this now.

heapwolf avatar Apr 09 '12 19:04 heapwolf

doing a bit of a refactor. much simpler. should be done pretty quick.

heapwolf avatar Apr 10 '12 04:04 heapwolf

awesome, thanks :-)

3rd-Eden avatar Apr 10 '12 06:04 3rd-Eden

ok, turned into a larger refactor than i thought, but awesome new features, non breaking.

heapwolf avatar Apr 11 '12 20:04 heapwolf