mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Add ~ as the prefix operator
This commit is contained in:
parent
a169b12b99
commit
8f308e73e5
2 changed files with 2 additions and 1 deletions
|
@ -84,6 +84,7 @@ module Ameba::Rule::Style
|
|||
source = Source.new %(
|
||||
(1..3).sum { |i| +i }
|
||||
(1..3).sum { |i| -i }
|
||||
(1..3).sum { |i| ~i }
|
||||
)
|
||||
rule = VerboseBlock.new
|
||||
rule
|
||||
|
|
|
@ -51,7 +51,7 @@ module Ameba::Rule::Style
|
|||
a_location.line_number == b_location.line_number
|
||||
end
|
||||
|
||||
private PREFIX_OPERATORS = {"+", "-"}
|
||||
private PREFIX_OPERATORS = {"+", "-", "~"}
|
||||
private OPERATOR_CHARS =
|
||||
{'[', ']', '!', '=', '>', '<', '~', '+', '-', '*', '/', '%', '^', '|', '&'}
|
||||
|
||||
|
|
Loading…
Reference in a new issue