Skip to content

Commit 5a98aa0

Browse files
authored
Merge pull request #2125 from Timmmm/highlighting
Improve code highlighting
2 parents d6464cb + 306e5fa commit 5a98aa0

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ OPTIONS := --trace \
113113
REQUIRES := --require=asciidoctor-bibtex \
114114
--require=asciidoctor-diagram \
115115
--require=asciidoctor-lists \
116-
--require=asciidoctor-mathematical
116+
--require=asciidoctor-mathematical \
117+
--require=asciidoctor-sail
117118

118119
.PHONY: all build clean build-container build-no-container build-docs build-pdf build-html build-epub submodule-check
119120

src/fraclmul.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ compilers can make good use of the fractional LMUL feature.
55

66
Consider the following (admittedly contrived) loop written in C:
77

8+
[source,c]
89
----
910
void add_ref(long N,
1011
signed char *restrict c_c, signed char *restrict c_a, signed char *restrict c_b,

src/riscv-privileged.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ endif::[]
3333
:sectnumlevels: 5
3434
:toc: left
3535
:toclevels: 4
36-
:source-highlighter: pygments
37-
ifdef::backend-pdf[]
3836
:source-highlighter: rouge
39-
endif::[]
4037
:table-caption: Table
4138
:figure-caption: Figure
4239
:xrefstyle: short

src/riscv-unprivileged.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ endif::[]
3030
:sectnumlevels: 5
3131
:toc: left
3232
:toclevels: 5
33-
:source-highlighter: pygments
34-
ifdef::backend-pdf[]
3533
:source-highlighter: rouge
36-
endif::[]
3734
:table-caption: Table
3835
:figure-caption: Figure
3936
:xrefstyle: short

src/unpriv-cfi.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ stack instructions to unwind a shadow stack. This example assumes that the
710710
`setjmp` function itself does not push on to the shadow stack (being a leaf
711711
function, it is not required to).
712712
713-
[listing]
713+
[source,c]
714+
----
714715
setjmp() {
715716
:
716717
:
@@ -741,7 +742,7 @@ longjmp() {
741742
back_cfi_not_active:
742743
:
743744
}
744-
====
745+
----
745746
746747
<<<
747748

0 commit comments

Comments
 (0)