From 1eb512505b351338f9da6a8452224f398b9ae7d8 Mon Sep 17 00:00:00 2001 From: MZuenni Date: Thu, 2 Mar 2023 10:58:22 +0100 Subject: highlight ll and ld like int --- latexHeaders/code.sty | 2 ++ other/stuff.cpp | 2 +- tcr.pdf | Bin 646204 -> 647153 bytes 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/latexHeaders/code.sty b/latexHeaders/code.sty index 67a6f15..89f2fd6 100644 --- a/latexHeaders/code.sty +++ b/latexHeaders/code.sty @@ -45,10 +45,12 @@ aboveskip=3pt, belowskip=3pt, deletestring=[b]{'},%lose char heighlighting but win digit separator + morekeywords={ll, ld}, escapechar=@ %moredelim=**[is][{\btHL[fill=green!30,draw=red,dashed,thin]}]{@}{@} } + % Listings doesn't support UTF8. This is just enough for German umlauts. \lstset{literate=% {Ö}{{\"O}}1 diff --git a/other/stuff.cpp b/other/stuff.cpp index 36e60ab..31498ac 100644 --- a/other/stuff.cpp +++ b/other/stuff.cpp @@ -24,6 +24,6 @@ __int128, __float128 std::decimal::decimal128 // 1e18 < INF < Max_Value / 2 -constexpr long long INF = 0x3FFF'FFFF'FFFF'FFFFll; +constexpr ll INF = 0x3FFF'FFFF'FFFF'FFFFll; // 1e9 < INF < Max_Value / 2 constexpr int INF = 0x3FFF'FFFF; diff --git a/tcr.pdf b/tcr.pdf index c311f61..25b6b3a 100644 Binary files a/tcr.pdf and b/tcr.pdf differ -- cgit v1.2.3