diff --git a/autotests/folding/highlight.pony.fold b/autotests/folding/highlight.pony.fold --- a/autotests/folding/highlight.pony.fold +++ b/autotests/folding/highlight.pony.fold @@ -102,6 +102,8 @@ fun tag expect_true(actual: Bool, msg: String = ""): Bool fun tag expect_eq[A: (Equatable[A] #read & Stringable)] (expect: A, actual: A, msg: String = ""): Bool +fun tag expect_eq[A: (Equatable[A] #unknown & Stringable)] + (expect: A, actual: A, msg: String = ""): Bool fun add(other: A): A fun sub(other: A): A @@ -159,9 +161,13 @@ '\uaaaa' '\Ubbbbbb' '\xcc' +'\'' +'\n' "\uaaaaa" "\Ubbbbbbb" "\xccc" +"\"" +"\n" 34.4 34.4e43 43e4 diff --git a/autotests/html/highlight.pony.html b/autotests/html/highlight.pony.html --- a/autotests/html/highlight.pony.html +++ b/autotests/html/highlight.pony.html @@ -108,6 +108,8 @@ fun tag expect_true(actual: Bool, msg: String = ""): Bool fun tag expect_eq[A: (Equatable[A] #read & Stringable)] (expect: A, actual: A, msg: String = ""): Bool +fun tag expect_eq[A: (Equatable[A] #unknown & Stringable)] + (expect: A, actual: A, msg: String = ""): Bool fun add(other: A): A fun sub(other: A): A @@ -165,9 +167,13 @@ '\uaaaa' '\Ubbbbbb' '\xcc' +'\'' +'\n' "\uaaaaa" "\Ubbbbbbb" "\xccc" +"\"" +"\n" 34.4 34.4e43 43e4 diff --git a/autotests/input/highlight.pony b/autotests/input/highlight.pony --- a/autotests/input/highlight.pony +++ b/autotests/input/highlight.pony @@ -102,6 +102,8 @@ fun tag expect_true(actual: Bool, msg: String = ""): Bool fun tag expect_eq[A: (Equatable[A] #read & Stringable)] (expect: A, actual: A, msg: String = ""): Bool +fun tag expect_eq[A: (Equatable[A] #unknown & Stringable)] + (expect: A, actual: A, msg: String = ""): Bool fun add(other: A): A fun sub(other: A): A @@ -159,9 +161,13 @@ '\uaaaa' '\Ubbbbbb' '\xcc' +'\'' +'\n' "\uaaaaa" "\Ubbbbbbb" "\xccc" +"\"" +"\n" 34.4 34.4e43 43e4 diff --git a/autotests/reference/highlight.pony.ref b/autotests/reference/highlight.pony.ref --- a/autotests/reference/highlight.pony.ref +++ b/autotests/reference/highlight.pony.ref @@ -102,6 +102,8 @@ fun tag expect_true(actual: Bool, msg: String = ""): Bool
fun tag expect_eq[A: (Equatable[A] #read & Stringable)]
(expect: A, actual: A, msg: String = ""): Bool
+fun tag expect_eq[A: (Equatable[A] #unknown & Stringable)]
+ (expect: A, actual: A, msg: String = ""): Bool

fun add(other: A): A
fun sub(other: A): A
@@ -159,9 +161,13 @@ '\uaaaa'
'\Ubbbbbb'
'\xcc'
+'\''
+'\n'
"\uaaaaa"
"\Ubbbbbbb"
"\xccc"
+"\""
+"\n"
34.4
34.4e43
43e4
diff --git a/data/syntax/pony.xml b/data/syntax/pony.xml --- a/data/syntax/pony.xml +++ b/data/syntax/pony.xml @@ -1,17 +1,16 @@ - + ]> class actor - - var - let - embed - fun be @@ -73,10 +67,11 @@ end - + and or xor + not create @@ -101,9 +96,6 @@ op_or op_xor - - not - iso trn @@ -135,6 +127,10 @@ true false + + var + let + embed None @@ -189,24 +185,24 @@ - - - + - - + + - + + + @@ -217,53 +213,56 @@ - + + + - + + - + + + - + - + + + + + - - - - + - - - - + @@ -273,22 +272,13 @@ - - - - - - - - -