diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/whitespace.yue | 23 | ||||
| -rw-r--r-- | spec/outputs/whitespace.lua | 12 |
2 files changed, 35 insertions, 0 deletions
diff --git a/spec/inputs/whitespace.yue b/spec/inputs/whitespace.yue index 329280f..2655961 100644 --- a/spec/inputs/whitespace.yue +++ b/spec/inputs/whitespace.yue | |||
| @@ -97,6 +97,29 @@ b( | |||
| 97 | c(one, two, | 97 | c(one, two, |
| 98 | three, four) | 98 | three, four) |
| 99 | 99 | ||
| 100 | d( | ||
| 101 | one -- one | ||
| 102 | two -- two | ||
| 103 | three -- three | ||
| 104 | four -- four | ||
| 105 | ) | ||
| 106 | |||
| 107 | e( | ||
| 108 | -> | ||
| 109 | -> | ||
| 110 | -> | ||
| 111 | ) | ||
| 112 | e{ | ||
| 113 | -> | ||
| 114 | -> | ||
| 115 | -> | ||
| 116 | } | ||
| 117 | e[ | ||
| 118 | -> | ||
| 119 | -> | ||
| 120 | -> | ||
| 121 | ] | ||
| 122 | |||
| 100 | -- | 123 | -- |
| 101 | 124 | ||
| 102 | v = -> | 125 | v = -> |
diff --git a/spec/outputs/whitespace.lua b/spec/outputs/whitespace.lua index 1bc4503..0251968 100644 --- a/spec/outputs/whitespace.lua +++ b/spec/outputs/whitespace.lua | |||
| @@ -77,6 +77,18 @@ end | |||
| 77 | a(one, two, three) | 77 | a(one, two, three) |
| 78 | b(one, two, three) | 78 | b(one, two, three) |
| 79 | c(one, two, three, four) | 79 | c(one, two, three, four) |
| 80 | d(one, two, three, four) | ||
| 81 | e(function() end, function() end, function() end) | ||
| 82 | e({ | ||
| 83 | function() end, | ||
| 84 | function() end, | ||
| 85 | function() end | ||
| 86 | }) | ||
| 87 | e({ | ||
| 88 | function() end, | ||
| 89 | function() end, | ||
| 90 | function() end | ||
| 91 | }) | ||
| 80 | local v | 92 | local v |
| 81 | v = function() | 93 | v = function() |
| 82 | return a, b, c | 94 | return a, b, c |
