summaryrefslogtreecommitdiffstats
path: root/vendor/mdbook/test_book
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
commit9918693037dce8aa4bb6f08741b6812923486c18 (patch)
tree21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/mdbook/test_book
parentReleasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff)
downloadrustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz
rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/mdbook/test_book')
-rw-r--r--vendor/mdbook/test_book/src/individual/code.md4
-rw-r--r--vendor/mdbook/test_book/src/languages/README.md1
-rw-r--r--vendor/mdbook/test_book/src/languages/highlight.md20
3 files changed, 24 insertions, 1 deletions
diff --git a/vendor/mdbook/test_book/src/individual/code.md b/vendor/mdbook/test_book/src/individual/code.md
index 26f2d564c..c1487289d 100644
--- a/vendor/mdbook/test_book/src/individual/code.md
+++ b/vendor/mdbook/test_book/src/individual/code.md
@@ -10,7 +10,9 @@ This is a codeblock
---
-This line contains `inline code`
+This line contains `inline code` mixed with some other stuff. (LTR)
+
+ושורה זו מכילה `inline code` אבל עם טקסט בשפה שנכתבת מימין לשמאל. (RTL)
---
diff --git a/vendor/mdbook/test_book/src/languages/README.md b/vendor/mdbook/test_book/src/languages/README.md
index fc1723358..4f70dd1af 100644
--- a/vendor/mdbook/test_book/src/languages/README.md
+++ b/vendor/mdbook/test_book/src/languages/README.md
@@ -27,6 +27,7 @@ This Currently contains following languages
- makefile
- markdown
- nginx
+- nim
- objectivec
- perl
- php
diff --git a/vendor/mdbook/test_book/src/languages/highlight.md b/vendor/mdbook/test_book/src/languages/highlight.md
index 85a48b0c5..371e315a9 100644
--- a/vendor/mdbook/test_book/src/languages/highlight.md
+++ b/vendor/mdbook/test_book/src/languages/highlight.md
@@ -529,6 +529,26 @@ http {
}
```
+## nim
+
+```nim
+from strutils import `%`
+
+const numDoors = 100
+var doors {.compileTime.}: array[1..numDoors, bool]
+
+proc calcDoors(): string =
+ for pass in 1..numDoors:
+ for door in countup(pass, numDoors, pass):
+ doors[door] = not doors[door]
+ for door in 1..numDoors:
+ result.add("Door $1 is $2.\n" % [$door, if doors[door]: "open" else: "closed"])
+
+const outputString: string = calcDoors()
+
+echo outputString
+```
+
## objectivec
```objectivec