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

Extra comma in tuple syntax error showing in wrong place #30

Closed
mdiiorio opened this issue Aug 7, 2012 · 0 comments
Closed

Extra comma in tuple syntax error showing in wrong place #30

mdiiorio opened this issue Aug 7, 2012 · 0 comments

Comments

@mdiiorio
Copy link

mdiiorio commented Aug 7, 2012

This may be an edge case, but it confused me for a few minutes this morning.

The following code has a syntax error on line 14 (an extra comma after final tuple), but the plugin incorrectly flags the error as on line 12 and line 10. The erlang compiler gives me an error on line 14.

-module(foo).

-export([bar/0]).

-record (rec, { something }).

foo(Blah) -> Blah.

bar() ->
    F = fun({ Eep }) ->
        ok,
        #'rec'{ something = Eep } = Eep#'rec'.something,
        blah,
        foo([{a}, {b},])
    end,
    F.
@ghost ghost assigned ignatov Aug 8, 2012
@ignatov ignatov closed this as completed in 7acab4b Nov 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants