benanders / ST2-ComputerCraft-Package

Sublime Text 2 syntax highlighting and code completion package for ComputerCraft
18 stars 5 forks source link

Wrong auto-indent #1

Closed diegodan1893 closed 10 years ago

diegodan1893 commented 11 years ago

when you define a function like this:

table = {
   a = function()
      print("test")
   end
}

it will indent correctly but if you want to add more functions, when you write a "," just after the end, it will move to the right:

table = {
   a = function()
      print("test")
      end,
}
theoriginalbit commented 10 years ago

tested this after making #8 and it is no longer a problem, can be closed.