Skip to content

Commit

Permalink
Tag off low-priority SyntaxError specs
Browse files Browse the repository at this point in the history
These are not commonly-used syntax and not raising the correct
error here does not impact typical usage.
  • Loading branch information
headius committed Feb 11, 2025
1 parent d63e36a commit dad6c6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/tags/ruby/language/delegation_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails(low-priority missing syntax error):delegation with def(*) within a block that accepts anonymous rest within a method that accepts anonymous rest does not allow delegating rest
fails(low-priority missing syntax error):delegation with def(**) within a block that accepts anonymous kwargs within a method that accepts anonymous kwargs does not allow delegating kwargs
fails(low-priority missing syntax error):delegation with def(&) within a block that accepts anonymous block within a method that accepts anonymous block does not allow delegating a block
1 change: 1 addition & 0 deletions spec/tags/ruby/language/hash_tags.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fails:The ** operator makes a copy when calling a method taking a positional Hash
fails:The ** operator hash with omitted value raises a SyntaxError when the hash key ends with `!`
fails:The ** operator hash with omitted value raises a SyntaxError when the hash key ends with `?`
fails(low-priority missing syntax error):Hash literal raises a SyntaxError at parse time when Symbol key with invalid bytes and 'key: value' syntax used
2 changes: 2 additions & 0 deletions spec/tags/ruby/language/source_encoding_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails(low-priority missing syntax error):Source files encoded in UTF-16 LE with a BOM are invalid because they contain an invalid UTF-8 sequence before the encoding comment
fails(low-priority missing syntax error):Source files encoded in UTF-16 BE with a BOM are invalid because they contain an invalid UTF-8 sequence before the encoding comment

0 comments on commit dad6c6b

Please sign in to comment.