update inbox list
This commit is contained in:
21
vendor/scrivo/highlight.php/test/markup/pony/control-flow.expect.txt
vendored
Normal file
21
vendor/scrivo/highlight.php/test/markup/pony/control-flow.expect.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<span class="hljs-keyword">if</span> a == b <span class="hljs-keyword">and</span> b == a <span class="hljs-keyword">then</span>
|
||||
env.out.print(<span class="hljs-string">"they are the same"</span>)
|
||||
<span class="hljs-keyword">elseif</span> a > b <span class="hljs-keyword">or</span> b < a <span class="hljs-keyword">then</span>
|
||||
env.out.print(<span class="hljs-string">"a is bigger"</span>)
|
||||
<span class="hljs-keyword">else</span>
|
||||
env.out.print(<span class="hljs-string">"b bigger"</span>)
|
||||
<span class="hljs-keyword">end</span>
|
||||
|
||||
<span class="hljs-keyword">while</span> count <= <span class="hljs-number">10</span> <span class="hljs-keyword">do</span>
|
||||
env.out.print(count.string())
|
||||
count = count + <span class="hljs-number">1</span>
|
||||
<span class="hljs-keyword">end</span>
|
||||
|
||||
<span class="hljs-keyword">for</span> name <span class="hljs-keyword">in</span> [<span class="hljs-string">"Bob"</span>; <span class="hljs-string">"Fred"</span>; <span class="hljs-string">"Sarah"</span>].values() <span class="hljs-keyword">do</span>
|
||||
env.out.print(name)
|
||||
<span class="hljs-keyword">end</span>
|
||||
|
||||
<span class="hljs-keyword">repeat</span>
|
||||
env.out.print(<span class="hljs-string">"hello!"</span>)
|
||||
counter = counter + <span class="hljs-number">1</span>
|
||||
<span class="hljs-keyword">until</span> counter > <span class="hljs-number">7</span> <span class="hljs-keyword">end</span>
|
||||
21
vendor/scrivo/highlight.php/test/markup/pony/control-flow.txt
vendored
Normal file
21
vendor/scrivo/highlight.php/test/markup/pony/control-flow.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
if a == b and b == a then
|
||||
env.out.print("they are the same")
|
||||
elseif a > b or b < a then
|
||||
env.out.print("a is bigger")
|
||||
else
|
||||
env.out.print("b bigger")
|
||||
end
|
||||
|
||||
while count <= 10 do
|
||||
env.out.print(count.string())
|
||||
count = count + 1
|
||||
end
|
||||
|
||||
for name in ["Bob"; "Fred"; "Sarah"].values() do
|
||||
env.out.print(name)
|
||||
end
|
||||
|
||||
repeat
|
||||
env.out.print("hello!")
|
||||
counter = counter + 1
|
||||
until counter > 7 end
|
||||
3
vendor/scrivo/highlight.php/test/markup/pony/creator.expect.txt
vendored
Normal file
3
vendor/scrivo/highlight.php/test/markup/pony/creator.expect.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<span class="hljs-keyword">new</span> create(env: <span class="hljs-type">Env</span>, name: <span class="hljs-type">String</span>) =>
|
||||
_env = env
|
||||
_name = name
|
||||
3
vendor/scrivo/highlight.php/test/markup/pony/creator.txt
vendored
Normal file
3
vendor/scrivo/highlight.php/test/markup/pony/creator.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
new create(env: Env, name: String) =>
|
||||
_env = env
|
||||
_name = name
|
||||
9
vendor/scrivo/highlight.php/test/markup/pony/iterface-trait.expect.txt
vendored
Normal file
9
vendor/scrivo/highlight.php/test/markup/pony/iterface-trait.expect.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<span class="hljs-keyword">interface</span> <span class="hljs-type">Iterator</span>[<span class="hljs-type">A</span>: <span class="hljs-type">A</span>]
|
||||
<span class="hljs-keyword">fun</span> has_next(): <span class="hljs-type">Bool</span>
|
||||
<span class="hljs-keyword">fun</span> next(): <span class="hljs-type">T</span>?
|
||||
|
||||
<span class="hljs-keyword">trait</span> <span class="hljs-type">UnitTest</span>
|
||||
<span class="hljs-keyword">fun</span> name(): <span class="hljs-type">String</span>
|
||||
<span class="hljs-keyword">fun</span> <span class="hljs-meta">ref</span> set_up(h: <span class="hljs-type">TestHelper</span>) ? =>
|
||||
<span class="hljs-type">None</span>
|
||||
<span class="hljs-keyword">fun</span> apply(h: <span class="hljs-type">TestHelper</span>) ?
|
||||
9
vendor/scrivo/highlight.php/test/markup/pony/iterface-trait.txt
vendored
Normal file
9
vendor/scrivo/highlight.php/test/markup/pony/iterface-trait.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
interface Iterator[A: A]
|
||||
fun has_next(): Bool
|
||||
fun next(): T?
|
||||
|
||||
trait UnitTest
|
||||
fun name(): String
|
||||
fun ref set_up(h: TestHelper) ? =>
|
||||
None
|
||||
fun apply(h: TestHelper) ?
|
||||
1
vendor/scrivo/highlight.php/test/markup/pony/lambda.expect.txt
vendored
Normal file
1
vendor/scrivo/highlight.php/test/markup/pony/lambda.expect.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{(foo: <span class="hljs-type">I32</span>)(bar): <span class="hljs-type">String</span> => (foo + bar).string()}
|
||||
1
vendor/scrivo/highlight.php/test/markup/pony/lambda.txt
vendored
Normal file
1
vendor/scrivo/highlight.php/test/markup/pony/lambda.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{(foo: I32)(bar): String => (foo + bar).string()}
|
||||
8
vendor/scrivo/highlight.php/test/markup/pony/match.expect.txt
vendored
Normal file
8
vendor/scrivo/highlight.php/test/markup/pony/match.expect.txt
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<span class="hljs-keyword">match</span> foo
|
||||
| <span class="hljs-literal">true</span> => <span class="hljs-string">"it's true"</span>
|
||||
| <span class="hljs-string">"bar"</span> => <span class="hljs-string">"it's bar"</span>
|
||||
| <span class="hljs-keyword">let</span> x: <span class="hljs-type">I32</span> <span class="hljs-keyword">if</span> x > <span class="hljs-number">3</span> => <span class="hljs-string">"it's greater than 3"</span>
|
||||
| <span class="hljs-keyword">let</span> x: <span class="hljs-type">I32</span> => <span class="hljs-string">"it's less than or equal to 3"</span>
|
||||
<span class="hljs-keyword">else</span>
|
||||
<span class="hljs-string">"I don't know what it is"</span>
|
||||
<span class="hljs-keyword">end</span>
|
||||
8
vendor/scrivo/highlight.php/test/markup/pony/match.txt
vendored
Normal file
8
vendor/scrivo/highlight.php/test/markup/pony/match.txt
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
match foo
|
||||
| true => "it's true"
|
||||
| "bar" => "it's bar"
|
||||
| let x: I32 if x > 3 => "it's greater than 3"
|
||||
| let x: I32 => "it's less than or equal to 3"
|
||||
else
|
||||
"I don't know what it is"
|
||||
end
|
||||
8
vendor/scrivo/highlight.php/test/markup/pony/method.expect.txt
vendored
Normal file
8
vendor/scrivo/highlight.php/test/markup/pony/method.expect.txt
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<span class="hljs-keyword">fun</span> foo(bar: <span class="hljs-type">String</span>): <span class="hljs-type">String</span> =>
|
||||
bar + <span class="hljs-string">"baz"</span>
|
||||
|
||||
<span class="hljs-keyword">new</span> create(hunger: <span class="hljs-type">I32</span>) =>
|
||||
_hunger = hunger
|
||||
|
||||
<span class="hljs-keyword">be</span> feed(food: <span class="hljs-type">I32</span>) =>
|
||||
_hunger = _hunger - food
|
||||
8
vendor/scrivo/highlight.php/test/markup/pony/method.txt
vendored
Normal file
8
vendor/scrivo/highlight.php/test/markup/pony/method.txt
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
fun foo(bar: String): String =>
|
||||
bar + "baz"
|
||||
|
||||
new create(hunger: I32) =>
|
||||
_hunger = hunger
|
||||
|
||||
be feed(food: I32) =>
|
||||
_hunger = _hunger - food
|
||||
15
vendor/scrivo/highlight.php/test/markup/pony/number-literals.expect.txt
vendored
Normal file
15
vendor/scrivo/highlight.php/test/markup/pony/number-literals.expect.txt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">U32</span> = <span class="hljs-number">42_000</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">U32</span> = <span class="hljs-number">42_000</span>_
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">U32</span> = <span class="hljs-number">42_000.234</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">U8</span> = <span class="hljs-number">1</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">F32</span> = <span class="hljs-number">1.234</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">I32</span> = <span class="hljs-number">1024</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">I32</span> = <span class="hljs-number">-1024</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">I32</span> = <span class="hljs-number">0x400</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">I32</span> = <span class="hljs-number">0X400</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">I32</span> = <span class="hljs-number">0b10101010</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">I32</span> = <span class="hljs-number">0B1010101</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">F32</span> = <span class="hljs-number">42.12e-4</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">F32</span> = <span class="hljs-number">42.12E-4</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">F32</span> = <span class="hljs-number">42.12e+4</span>
|
||||
<span class="hljs-keyword">let</span> num: <span class="hljs-type">F32</span> = <span class="hljs-number">42.12E+4</span>
|
||||
15
vendor/scrivo/highlight.php/test/markup/pony/number-literals.txt
vendored
Normal file
15
vendor/scrivo/highlight.php/test/markup/pony/number-literals.txt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
let num: U32 = 42_000
|
||||
let num: U32 = 42_000_
|
||||
let num: U32 = 42_000.234
|
||||
let num: U8 = 1
|
||||
let num: F32 = 1.234
|
||||
let num: I32 = 1024
|
||||
let num: I32 = -1024
|
||||
let num: I32 = 0x400
|
||||
let num: I32 = 0X400
|
||||
let num: I32 = 0b10101010
|
||||
let num: I32 = 0B1010101
|
||||
let num: F32 = 42.12e-4
|
||||
let num: F32 = 42.12E-4
|
||||
let num: F32 = 42.12e+4
|
||||
let num: F32 = 42.12E+4
|
||||
11
vendor/scrivo/highlight.php/test/markup/pony/objects.expect.txt
vendored
Normal file
11
vendor/scrivo/highlight.php/test/markup/pony/objects.expect.txt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<span class="hljs-keyword">primitive</span> <span class="hljs-type">I32</span> <span class="hljs-keyword">is</span> <span class="hljs-type">SignedInteger</span>
|
||||
|
||||
<span class="hljs-keyword">actor</span> <span class="hljs-type">Main</span>
|
||||
|
||||
<span class="hljs-keyword">class</span> <span class="hljs-meta">ref</span> <span class="hljs-type">List</span>[<span class="hljs-type">A</span>: <span class="hljs-type">A</span>] <span class="hljs-keyword">is</span> <span class="hljs-type">Seq</span>[<span class="hljs-type">A</span>] <span class="hljs-meta">ref</span>
|
||||
|
||||
<span class="hljs-keyword">object</span> <span class="hljs-keyword">is</span> <span class="hljs-type">Hashable</span>
|
||||
|
||||
<span class="hljs-keyword">object</span> <span class="hljs-meta">iso</span>
|
||||
|
||||
<span class="hljs-keyword">primitive</span> <span class="hljs-type">Foo</span> <span class="hljs-keyword">is</span> <span class="hljs-type">Bar</span> <span class="hljs-meta">iso</span>
|
||||
11
vendor/scrivo/highlight.php/test/markup/pony/objects.txt
vendored
Normal file
11
vendor/scrivo/highlight.php/test/markup/pony/objects.txt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
primitive I32 is SignedInteger
|
||||
|
||||
actor Main
|
||||
|
||||
class ref List[A: A] is Seq[A] ref
|
||||
|
||||
object is Hashable
|
||||
|
||||
object iso
|
||||
|
||||
primitive Foo is Bar iso
|
||||
2
vendor/scrivo/highlight.php/test/markup/pony/prime.expect.txt
vendored
Normal file
2
vendor/scrivo/highlight.php/test/markup/pony/prime.expect.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<span class="hljs-keyword">new</span> create(name': <span class="hljs-type">String</span>) =>
|
||||
name = name' + <span class="hljs-string">'a'</span>
|
||||
2
vendor/scrivo/highlight.php/test/markup/pony/prime.txt
vendored
Normal file
2
vendor/scrivo/highlight.php/test/markup/pony/prime.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
new create(name': String) =>
|
||||
name = name' + 'a'
|
||||
5
vendor/scrivo/highlight.php/test/markup/pony/triple-quote.expect.txt
vendored
Normal file
5
vendor/scrivo/highlight.php/test/markup/pony/triple-quote.expect.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<span class="hljs-string">"""
|
||||
A triple quoted string
|
||||
* Goes several lines
|
||||
* Keeps formatting
|
||||
"""</span>
|
||||
5
vendor/scrivo/highlight.php/test/markup/pony/triple-quote.txt
vendored
Normal file
5
vendor/scrivo/highlight.php/test/markup/pony/triple-quote.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"""
|
||||
A triple quoted string
|
||||
* Goes several lines
|
||||
* Keeps formatting
|
||||
"""
|
||||
Reference in New Issue
Block a user