File tree 1 file changed +8
-12
lines changed
1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 21
21
\RequirePackage {xcolor}
22
22
\RequirePackage {ninecolors}
23
23
\RequirePackage {varwidth}
24
- \ifluatex
25
- \RequirePackage {luatexbase}
26
- \fi
24
+ \RequirePackage {iftex}
25
+ \legacy _if:nT {LuaTeX} {\RequirePackage {luatexbase}}
27
26
28
27
\int _new:N \l __codehigh_a_int
29
28
\int _new:N \l __codehigh_b_int
494
493
495
494
\cs _new_protected:Npn \_ _codehigh_parse_code:nN #1 #2
496
495
{
497
- \ifluatex
498
- \_ _codehigh_parse_code_luatex:nN {#1} #2
499
- \else
500
- \_ _codehigh_parse_code_normal:nN {#1} #2
501
- \fi
496
+ \legacy _if:nTF {LuaTeX}
497
+ { \_ _codehigh_parse_code_luatex:nN {#1} #2 }
498
+ { \_ _codehigh_parse_code_normal:nN {#1} #2 }
502
499
}
503
500
\cs _generate_variant:Nn \_ _codehigh_parse_code:nN {VN}
504
501
561
558
}
562
559
}
563
560
564
- \ifluatex \directlua {require("codehigh.lua")} \fi
561
+ \legacy _if:nT {LuaTeX} { \directlua {require("codehigh.lua")} }
565
562
566
563
\cs _new_protected:Npn \_ _codehigh_parse_code_luatex:nN #1 #2
567
564
{
581
578
\_ _codehigh_tracing:nn {parser} { \tl _log:e { type: #1; ~ text: #2 } }
582
579
\group _begin:
583
580
\regex _replace_all:nnN { \r } { \c {par} \c {leavevmode} } #2
584
- \ifluatex \else
585
- \regex _replace_all:nnN { \ } { \c {leavevmode} \c {space} } #2
586
- \fi
581
+ \legacy _if:nF {LuaTeX}
582
+ { \regex _replace_all:nnN { \ } { \c {leavevmode} \c {space} } #2 }
587
583
\color {\tl _use:c {l__codehigh_style_ \l __codehigh_theme_name_tl _#1_tl}}
588
584
% \obeyspaces
589
585
#2
You can’t perform that action at this time.
0 commit comments