d12frosted / fish-mode

Major mode for editing fish shell scripts
1 stars 0 forks source link

Wrong indentation of `begin` blocks #1

Closed d12frosted closed 9 years ago

d12frosted commented 9 years ago

For example:

function1; and begin
  function2
  function3
end

This is expected indentation. But what I see is:

function1; and begin
function2
function3
end

Currently, fish-mode looks only for the first term in the line, so it doesn't see begin. But this is valid syntax, so this should be fixed.