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

ktn_dodger can't parse -else. #72

Open
elbrujohalcon opened this issue May 25, 2022 · 0 comments
Open

ktn_dodger can't parse -else. #72

elbrujohalcon opened this issue May 25, 2022 · 0 comments
Labels

Comments

@elbrujohalcon
Copy link
Member

Bug Description

When running ktn_dodger:parse_file/1,2 on a file with an -else., it reports an error (or, if using no_fail, it just parses that as text instead of an actual attribute).

To Reproduce

Try running ktn_parse:parse_file/1,2 on the following file…

-module x.

-export [x/0].

-ifdef(VAR).
x() ->
    var.
-else.
x() ->
    not_var.
-endif.

Expected Behavior

-else. to be parsed as an attribute.

Additional Context

  • OS: MacOS
  • Erlang version: OTP25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant