summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMZuenni <michi.zuendorf@gmail.com>2023-03-02 10:58:22 +0100
committerMZuenni <michi.zuendorf@gmail.com>2023-03-02 10:58:22 +0100
commit1eb512505b351338f9da6a8452224f398b9ae7d8 (patch)
tree530b075380be6e3f238b3e68e0ee8df2db5f1c21
parentb15088d04aac27a3ef94cf79e68d681d735b1bbc (diff)
highlight ll and ld like int
-rw-r--r--latexHeaders/code.sty2
-rw-r--r--other/stuff.cpp2
-rw-r--r--tcr.pdfbin646204 -> 647153 bytes
3 files changed, 3 insertions, 1 deletions
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
--- a/tcr.pdf
+++ b/tcr.pdf
Binary files differ