diff options
Diffstat (limited to 'vendor/mdbook/test_book')
-rw-r--r-- | vendor/mdbook/test_book/src/individual/code.md | 4 | ||||
-rw-r--r-- | vendor/mdbook/test_book/src/languages/README.md | 1 | ||||
-rw-r--r-- | vendor/mdbook/test_book/src/languages/highlight.md | 20 |
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 |