Skip to content

Commit 9afec26

Browse files
committed
Update index layout
1 parent 6bcca78 commit 9afec26

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ seo:
4949
{{< tab "Closures" >}}
5050

5151
{{< highlight_arkscript >}}
52-
(let countdown-from (fun (x)
52+
(let countdown-from (fun ((mut x))
5353
# return a closure that captures "x"
5454
(fun (&x) {
5555
(set x (- x 1))

layouts/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,37 +30,37 @@
3030
<div class="container">
3131
<div class="row justify-content-center text-center">
3232

33+
<div class="col-lg-5">
34+
<h2 class="h4">📚 Easy to learn</h2>
35+
<p>Small syntax, can be learned and put to use in a few hours, no matter your programming experience.</p>
36+
</div>
37+
3338
<div class="col-lg-5">
3439
<h2 class="h4">🧰 Functional scripting language</h2>
35-
<p>Every parameter is passed by value ; functions are first class citizens ; closures have explicit captures.</p>
40+
<p>Every parameter is passed by value ; functions are first class citizens ; closures use explicit captures.</p>
3641
</div>
3742

3843
<div class="col-lg-5">
3944
<h2 class="h4">⚗ Easy to embed in C++ apps</h2>
40-
<p>Very easy to embed it in your projects. Creating bindings <a href="/docs/tutorials/embedding">is made easy</a>.</p>
45+
<p>Very easy to embed it in your projects, to use as a scripting language. Creating bindings <a href="/docs/tutorials/embedding">is made easy</a>.</p>
4146
</div>
4247

4348
<div class="col-lg-5">
4449
<h2 class="h4">⚡️ Batteries included</h2>
4550
{{ $file := readFile "content/docs/std/_decl.txt" }}
4651
{{ $array := split $file "\n" }}
4752
{{ $count := len $array }}
48-
<p><a href="/docs/std/">A collection of {{ math.Sub $count 1 }} algorithms</a> to help write scripts quickly.</p>
53+
<p><a href="/docs/std/">A collection of {{ math.Sub $count 1 }} algorithms</a> to help you code, without having to install hundreds of dependencies.</p>
4954
</div>
5055

5156
<div class="col-lg-5">
5257
<h2 class="h4">🧱 Safe macros</h2>
5358
<p>Write your own macros and generate code at compile time! Macros will <i>never</i> download files from the internet or need access to your hard drive.</p>
5459
</div>
5560

56-
<div class="col-lg-5">
57-
<h2 class="h4">🚀 Performances</h2>
58-
<p><a href="/tools/benchmarks">Decent performances</a> for use in as many situations as possible.</p>
59-
</div>
60-
6161
<div class="col-lg-5">
6262
<h2 class="h4">✨ Modern codebase</h2>
63-
<p>Made with C++20 and heavily tested (even <a href="/docs/reference/testing_arkscript">error messages are tested</a>!)</p>
63+
<p>Made with C++20, with best practices in mind, heavily tested (we even test <a href="/docs/reference/testing_arkscript">error messages</a>).</p>
6464
</div>
6565

6666
</div>

static/js/arkscript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Rainbow.extend('arkscript', [
3333
1: 'storage.function',
3434
2: 'variable'
3535
},
36-
pattern: /\(\s*(let|mut|set)\s+\(?(\S+)/g
36+
pattern: /\(\s*(let|mut|set|ref)\s+\(?([A-Za-z:&;!?@_\-+*\/|=<>%$][A-Za-z0-9:&;!?@_\-+*/|=<>%$]*)/g
3737
},
3838
{
3939
matches: {

0 commit comments

Comments
 (0)