diff options
author | Mario Finelli <mario@finel.li> | 2021-08-15 15:30:36 -0400 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-08-16 06:16:53 +0200 |
commit | 699f1e65cc0bfad3af620c8b9ccffe6c2bd6f217 (patch) | |
tree | 5be3049ce37d2e544d52a907acd830a988e6435b | |
parent | 9ef87dab272dcacd0e2687d163c8c065022d930d (diff) |
Add slim syntax test
-rw-r--r-- | tests/syntax-tests/highlighted/Slim/test.slim | 20 | ||||
-rw-r--r-- | tests/syntax-tests/source/Slim/test.slim | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Slim/test.slim b/tests/syntax-tests/highlighted/Slim/test.slim new file mode 100644 index 00000000..2a157a03 --- /dev/null +++ b/tests/syntax-tests/highlighted/Slim/test.slim @@ -0,0 +1,20 @@ +[38;2;249;38;114mdoctype[0m[38;2;248;248;242m html[0m +[38;2;249;38;114mhtml[0m[38;2;248;248;242m [0m[38;2;166;226;46mlang[0m[38;2;166;226;46m=[0m[38;2;248;248;242mlocale[0m +[38;2;248;248;242m [0m[38;2;249;38;114mhead[0m +[38;2;248;248;242m [0m[38;2;249;38;114mmeta[0m[38;2;248;248;242m [0m[38;2;166;226;46mcharset[0m[38;2;166;226;46m=[0m[38;2;255;255;255m'[0m[38;2;230;219;116mutf-8[0m[38;2;255;255;255m'[0m +[38;2;248;248;242m [0m[38;2;249;38;114mtitle[0m[38;2;248;248;242m [0m[38;2;249;38;114m#{[0m[38;2;246;170;17m@[0m[38;2;255;255;255mtitle[0m[38;2;248;248;242m [0m[38;2;249;38;114m?[0m[38;2;248;248;242m [0m[38;2;249;38;114m"[0m[38;2;248;248;242m#{[0m[38;2;246;170;17m@[0m[38;2;255;255;255mtitle[0m[38;2;248;248;242m}[0m[38;2;230;219;116m | Testing[0m[38;2;249;38;114m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m:[0m[38;2;248;248;242m [0m[38;2;249;38;114m'[0m[38;2;230;219;116mTesting[0m[38;2;249;38;114m'[0m[38;2;249;38;114m}[0m +[38;2;248;248;242m [0m[38;2;248;248;242m==[0m[38;2;248;248;242m stylesheet[0m[38;2;255;255;255m([0m[38;2;249;38;114m'[0m[38;2;230;219;116mapp.css[0m[38;2;249;38;114m'[0m[38;2;255;255;255m)[0m + +[38;2;248;248;242m [0m[38;2;249;38;114mbody[0m +[38;2;248;248;242m [0m[38;2;249;38;114mheader[0m +[38;2;248;248;242m [0m[38;2;249;38;114mh1[0m[38;2;166;226;46m.[0m[38;2;166;226;46mtitle[0m[38;2;248;248;242m Testing[0m + +[38;2;248;248;242m [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;246;170;17m@[0m[38;2;255;255;255mlinks[0m[38;2;248;248;242m.[0m[38;2;248;248;242meach [0m[38;2;249;38;114mdo[0m[38;2;248;248;242m [0m[38;2;248;248;242m|[0m[3;38;2;253;151;31mlink[0m[38;2;248;248;242m|[0m +[38;2;248;248;242m [0m[38;2;249;38;114ma[0m[38;2;248;248;242m [0m[38;2;166;226;46mhref[0m[38;2;166;226;46m=[0m[38;2;248;248;242mlink.href[0m +[38;2;248;248;242m [0m[38;2;248;248;242m=[0m[38;2;248;248;242mlink[0m[38;2;248;248;242m.[0m[38;2;248;248;242mtitle[0m +[38;2;248;248;242m [0m[38;2;249;38;114mdiv[0m +[38;2;248;248;242m [0m[38;2;248;248;242m==[0m[38;2;248;248;242m [0m[38;2;249;38;114myield[0m + +[38;2;248;248;242m [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;102;217;239mAPP_ENV[0m[38;2;248;248;242m [0m[38;2;249;38;114m==[0m[38;2;248;248;242m [0m[38;2;249;38;114m'[0m[38;2;230;219;116mproduction[0m[38;2;249;38;114m'[0m +[38;2;248;248;242m [0m[38;2;249;38;114mfooter[0m +[38;2;248;248;242m [0m[38;2;249;38;114mp[0m[38;2;248;248;242m Testing[0m diff --git a/tests/syntax-tests/source/Slim/test.slim b/tests/syntax-tests/source/Slim/test.slim new file mode 100644 index 00000000..e52f70dd --- /dev/null +++ b/tests/syntax-tests/source/Slim/test.slim @@ -0,0 +1,20 @@ +doctype html +html lang=locale + head + meta charset='utf-8' + title #{@title ? "#{@title} | Testing" : 'Testing'} + == stylesheet('app.css') + + body + header + h1.title Testing + + - @links.each do |link| + a href=link.href + =link.title + div + == yield + + - if APP_ENV == 'production' + footer + p Testing |