dparkins / language-fortran

Syntax highlighting for FORTRAN for atom
MIT License
35 stars 16 forks source link

end if #73

Closed jacobwilliams closed 8 years ago

jacobwilliams commented 8 years ago

Is it possible to disable the autocompletion of the if statement if it is proceeded by an end? Every time I type end if and hit Enter, it does the following, and then I have to undo.

endif endif2
tomedunn commented 8 years ago

I haven't touched the snippets in a long while (maybe ever). So I'm not sure exactly what can be done with these other than to remove them. But I'll look into it and see if I can prevent them from triggering in these cases.

tomedunn commented 8 years ago

OK. After a few minutes playing with the rules it doesn't look like you can add regex to these rules. So place detecting doesn't seem possible. However I did learn that you can change Atom's autocomplete package autocomplete-plus to trigger using the tab key rather than enter (see this post). That's probably the simplest solution.

jacobwilliams commented 8 years ago

That works for me. Thanks!