diff options
Diffstat (limited to 'spec/inputs')
-rw-r--r-- | spec/inputs/existential.yue | 2 | ||||
-rw-r--r-- | spec/inputs/metatable.yue | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/spec/inputs/existential.yue b/spec/inputs/existential.yue index e73b421..27891dc 100644 --- a/spec/inputs/existential.yue +++ b/spec/inputs/existential.yue | |||
@@ -49,7 +49,7 @@ with? io.open "test.txt", "w" | |||
49 | \write "hello" | 49 | \write "hello" |
50 | \close! | 50 | \close! |
51 | 51 | ||
52 | tb?.<a>? 123 | 52 | tb?.<call>? 123 |
53 | 53 | ||
54 | with? tb.<>?.<index> | 54 | with? tb.<>?.<index> |
55 | .a = 1 | 55 | .a = 1 |
diff --git a/spec/inputs/metatable.yue b/spec/inputs/metatable.yue index 61cc266..38b7ce5 100644 --- a/spec/inputs/metatable.yue +++ b/spec/inputs/metatable.yue | |||
@@ -37,14 +37,14 @@ a.<index> = tb | |||
37 | mt = a.<> | 37 | mt = a.<> |
38 | 38 | ||
39 | tb\func #list | 39 | tb\func #list |
40 | tb\<func>list | 40 | tb\<"func">list |
41 | tb\<func> list | 41 | tb\<"func"> list |
42 | 42 | ||
43 | import "module" as :<index>, <newindex>:setFunc | 43 | import "module" as :<index>, <newindex>:setFunc |
44 | 44 | ||
45 | with tb | 45 | with tb |
46 | print .<add>, .x\<index> "key" | 46 | print .<add>, .x\<index> "key" |
47 | a = .<index>.<add>\<new> 123 | 47 | a = .<index>.<add>\<"new"> 123 |
48 | b = t#.<close>.test | 48 | b = t#.<close>.test |
49 | c = t #.<close> .test | 49 | c = t #.<close> .test |
50 | 50 | ||
@@ -70,13 +70,13 @@ do | |||
70 | return tb\<["value" .. tostring x > y]>(123, ...) | 70 | return tb\<["value" .. tostring x > y]>(123, ...) |
71 | 71 | ||
72 | do | 72 | do |
73 | f = tb\<value>(123, ...) | 73 | f = tb\<'value'>(123, ...) |
74 | f tb\<value>(123, ...) | 74 | f tb\<'value'>(123, ...) |
75 | tb\<value>(123, ...) | 75 | tb\<'value'>(123, ...) |
76 | return tb\<value> 123, ... | 76 | return tb\<'value'> 123, ... |
77 | 77 | ||
78 | do | 78 | do |
79 | f = tb.<value> 123, ... | 79 | f = tb.<["value"]> 123, ... |
80 | f = tb.<"value#{x < y}">(123, ...) | 80 | f = tb.<"value#{x < y}">(123, ...) |
81 | f tb.<'value'> 123, ... | 81 | f tb.<'value'> 123, ... |
82 | tb.<[[ value | 82 | tb.<[[ value |