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

Use module name as the input file name if the latter isn't provided (i.e., code via stdin) #76

Merged
merged 3 commits into from
Aug 18, 2022

Conversation

sile
Copy link
Owner

@sile sile commented Aug 18, 2022

Before

$ echo "-module(foo). \nfoo -> ok." | efmt -
[2022-08-18T11:51:00Z ERROR efmt] Failed to format "-"
    Parse failed:
    --> <unknown>:2:5
    2 | foo -> ok.
      |     ^ unexpected token

After

$ echo "-module(foo). \nfoo -> ok." | efmt -
[2022-08-18T11:50:23Z ERROR efmt] Failed to format "-"
    Parse failed:
    --> foo.erl:2:5
    2 | foo -> ok.
      |     ^ unexpected token

@sile sile merged commit 5640e23 into master Aug 18, 2022
@sile sile deleted the use-module-name-as-file-name branch August 18, 2022 11:51
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

Successfully merging this pull request may close these issues.

1 participant