Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynetics committed Oct 11, 2023
1 parent e77eeef commit 0677c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/scanner/sets_spec.rb
Expand Up @@ -87,7 +87,7 @@
include_examples 'scan', /[a-bd-f]/, 2 => [:set, :range, '-', 2, 3]
include_examples 'scan', /[a-cd-f]/, 5 => [:set, :range, '-', 5, 6]
# this is a buggy range, it matches only `c`, but not `a`, `b` or `-`
# (this is a string to work around a rubocop error in Lint/MixedCaseRange)
# (this is a string to work around a rubocop v1.56.4 error in Lint/MixedCaseRange)
include_examples 'scan', '[a-[c]]', 2 => [:set, :range, '-', 2, 3]
# these are not ranges, they match `a`, `c` and `-` (or non-`-` if negated)
include_examples 'scan', /[[a]-[c]]/, 4 => [:literal, :literal, '-', 4, 5]
Expand Down

0 comments on commit 0677c00

Please sign in to comment.