pineapple-notepad/3rdparty/lexilla540/lexilla/test/examples/ruby/PercentEquals124.rb.styled

9 lines
291 B
Plaintext
Raw Permalink Normal View History

2024-07-02 23:47:26 +08:00
{2}# Issue 124, disambiguating %= which may be a quote or modulo assignment{0}
{2}# %-quoting with '=' as the quote{0}
{11}s{0} {10}={0} {25}%=3={0}
{11}puts{0} {11}s{0}
{11}x{0} {10}={0} {4}7{0}
{2}# Modulo assignment, equivalent to x = x % 2{0}
{11}x{0} {10}%={4}2{0}
{11}puts{0} {11}x{0}