aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/examples
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2015-03-25 08:45:23 +0100
committerBjörn Gustavsson <[email protected]>2015-04-30 12:15:26 +0200
commitd0ae65db6214489d26db8c411b3758c517ef84e4 (patch)
tree21e1a2a912c82bdd6c6f9053f80c9154ecb2a0ef /lib/wx/examples
parent2c4068dee7e8a901f0bd9104254036f4bb1ffd6e (diff)
downloadotp-d0ae65db6214489d26db8c411b3758c517ef84e4.tar.gz
otp-d0ae65db6214489d26db8c411b3758c517ef84e4.tar.bz2
otp-d0ae65db6214489d26db8c411b3758c517ef84e4.zip
wx: Use module erl_anno
Diffstat (limited to 'lib/wx/examples')
-rw-r--r--lib/wx/examples/demo/demo_html_tagger.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/wx/examples/demo/demo_html_tagger.erl b/lib/wx/examples/demo/demo_html_tagger.erl
index 7bb6736fdc..b119f0e226 100644
--- a/lib/wx/examples/demo/demo_html_tagger.erl
+++ b/lib/wx/examples/demo/demo_html_tagger.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2009-2013. All Rights Reserved.
+%% Copyright Ericsson AB 2009-2015. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -267,8 +267,10 @@ normalize_toks(Toks) ->
normalize_tok(Tok) ->
%% this is the portable way ...
- [{_,Type},{_,Line},{_,Col},{_,Txt}] =
- erl_scan:token_info(Tok, [category,line,column,text]),
+ Type = erl_scan:category(Tok),
+ Line = erl_scan:line(Tok),
+ Col = erl_scan:column(Tok),
+ Txt = erl_scan:text(Tok),
Val = {Type,{Line,Col},Txt},
%% io:format("here:X=~p ~p~n",[Tok,Val]),
Val.