diff options
author | Roberto Aloi <robertoaloi@fb.com> | 2023-04-26 16:36:55 +0200 |
---|---|---|
committer | Roberto Aloi <robertoaloi@fb.com> | 2023-04-26 16:36:55 +0200 |
commit | 83c8428e6b00d7255e67a19dd007cc1938d47458 (patch) | |
tree | b35e08a11297b71951db17fcb3948bd46053eb54 /lib/syntax_tools | |
parent | cd91cd9688b919fa81cd583e62d6950e99c23e81 (diff) | |
download | erlang-83c8428e6b00d7255e67a19dd007cc1938d47458.tar.gz |
Handle feature attribute in epp_dodger
Diffstat (limited to 'lib/syntax_tools')
-rw-r--r-- | lib/syntax_tools/src/epp_dodger.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/syntax_tools/src/epp_dodger.erl b/lib/syntax_tools/src/epp_dodger.erl index 2e0694c2cf..40f67b5660 100644 --- a/lib/syntax_tools/src/epp_dodger.erl +++ b/lib/syntax_tools/src/epp_dodger.erl @@ -517,6 +517,8 @@ quickscan_form([{'-', _Anno}, {'else', AnnoA} | _Ts]) -> kill_form(AnnoA); quickscan_form([{'-', _Anno}, {atom, AnnoA, endif} | _Ts]) -> kill_form(AnnoA); +quickscan_form([{'-', _Anno}, {atom, AnnoA, feature} | _Ts]) -> + kill_form(AnnoA); quickscan_form([{'-', Anno}, {'?', _}, {Type, _, _}=N | [{'(', _} | _]=Ts]) when Type =:= atom; Type =:= var -> %% minus, macro and open parenthesis at start of form - assume that |