aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_syntax_lib.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-10-19 14:04:13 +0200
committerTomas Abrahamsson <[email protected]>2018-05-09 08:38:32 +0200
commit71bb5d9272bfa046c3cfe8a419bf70877f141146 (patch)
tree2280d9dbaf526dbe096c11243acf6bcfa568502a /lib/syntax_tools/src/erl_syntax_lib.erl
parent109b1dc2e346efc37f8c5cfecbf0fa2a476b14fa (diff)
downloadotp-71bb5d9272bfa046c3cfe8a419bf70877f141146.tar.gz
otp-71bb5d9272bfa046c3cfe8a419bf70877f141146.tar.bz2
otp-71bb5d9272bfa046c3cfe8a419bf70877f141146.zip
syntax_tools: Add support for -if and -elif
Diffstat (limited to 'lib/syntax_tools/src/erl_syntax_lib.erl')
-rw-r--r--lib/syntax_tools/src/erl_syntax_lib.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/syntax_tools/src/erl_syntax_lib.erl b/lib/syntax_tools/src/erl_syntax_lib.erl
index c7f477c4d2..ced0dba3e2 100644
--- a/lib/syntax_tools/src/erl_syntax_lib.erl
+++ b/lib/syntax_tools/src/erl_syntax_lib.erl
@@ -1317,6 +1317,8 @@ analyze_attribute(Node) ->
include_lib -> preprocessor;
ifdef -> preprocessor;
ifndef -> preprocessor;
+ 'if' -> preprocessor;
+ elif -> preprocessor;
else -> preprocessor;
endif -> preprocessor;
A ->