adrianlee44 / atom-aligner

Easily align multi-line with support for different operators and custom configurations
https://atom.io/packages/aligner
MIT License
77 stars 3 forks source link

Lua support #57

Closed bigdogmat closed 8 years ago

bigdogmat commented 8 years ago

Would be nice to see Lua support for this.

adrianlee44 commented 8 years ago

Can you give some examples of what you are trying to align?

bigdogmat commented 8 years ago
local string_format = string.format
local chat_AddText = chat.AddText
local unpack = unpack
local MsgN = MsgN

To

local string_format = string.format
local chat_AddText  = chat.AddText
local unpack        = unpack
local MsgN          = MsgN

And possibly table alignment, e.g

local tab = {
  stuff = true,
  otherstuff = false,
  morestuff = function()

  end,
}

To

local tab = {
  stuff      = true,
  otherstuff = false,
  morestuff  = function()

  end,
}
adrianlee44 commented 8 years ago

Sorry for the late response. Are you using this package (https://atom.io/packages/language-lua) for grammar support?

adrianlee44 commented 8 years ago

I just published https://atom.io/packages/aligner-lua which should provide support for Lua. Let me know if you encounter any issue.