diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-09-25 13:23:42 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-09-25 17:33:51 +0000 |
| commit | 768ceceb12c7947030132007b91d5bdb97a8839c (patch) | |
| tree | 302b7037e3e9672eb47cc5579e4b8e604ed6fc1e /test/prism/errors | |
| parent | 6a168fbf41589820018a58e9a55b75103486d99a (diff) | |
[ruby/prism] Disallow label in parentheses
https://github.com/ruby/prism/commit/b624e09cc6
Diffstat (limited to 'test/prism/errors')
| -rw-r--r-- | test/prism/errors/label_in_parentheses.txt | 3 | ||||
| -rw-r--r-- | test/prism/errors/symbol_in_hash.txt | 2 | ||||
| -rw-r--r-- | test/prism/errors/symbol_in_keyword_parameter.txt | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/test/prism/errors/label_in_parentheses.txt b/test/prism/errors/label_in_parentheses.txt new file mode 100644 index 0000000000..4f6e3e9e36 --- /dev/null +++ b/test/prism/errors/label_in_parentheses.txt @@ -0,0 +1,3 @@ +("a":) + ^~~~ unexpected label + diff --git a/test/prism/errors/symbol_in_hash.txt b/test/prism/errors/symbol_in_hash.txt index 148040aa61..9e687583e5 100644 --- a/test/prism/errors/symbol_in_hash.txt +++ b/test/prism/errors/symbol_in_hash.txt @@ -1,3 +1,3 @@ {x:'y':} - ^~ unexpected label terminator, expected a string literal terminator + ^~~~ unexpected label diff --git a/test/prism/errors/symbol_in_keyword_parameter.txt b/test/prism/errors/symbol_in_keyword_parameter.txt index 22d03cccb2..9df43d8c5a 100644 --- a/test/prism/errors/symbol_in_keyword_parameter.txt +++ b/test/prism/errors/symbol_in_keyword_parameter.txt @@ -1,3 +1,3 @@ def foo(x:'y':); end - ^~ unexpected label terminator, expected a string literal terminator + ^~~~ unexpected label |
