Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-end code blocks #22

Open
karai17 opened this issue Sep 1, 2015 · 2 comments
Open

Auto-end code blocks #22

karai17 opened this issue Sep 1, 2015 · 2 comments

Comments

@karai17
Copy link

karai17 commented Sep 1, 2015

I am not sure if this is an Atom feature or a language grammar feature (or both?) but Atom seems to enjoy adding closing syntax such as brackets, braces, and quotations when you type the opening equivalent. It would be pretty nice if this grammar could auto close code blocks that use "end" such as:

function name()
end

name = function()
end

for i=1, 10 do
end

for i, v in ipairs(t) do
end

for k, v in pairs(t) do
end

while true do
end

do
end

if true then
end
@rm-code
Copy link
Contributor

rm-code commented Dec 7, 2015

@karai17 As far as I know this is all handled by https://github.com/atom/bracket-matcher. Would be interesting to know if the language-lua package could be extended in a way that it uses the bracket-matcher.

@pablomayobre
Copy link

I think we should wait for atom/bracket-matcher#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants