summaryrefslogtreecommitdiff
path: root/doc/syntax/control_expressions.rdoc
AgeCommit message (Collapse)Author
2020-02-24Add pattern matching documentationzverok
Add separate doc/syntax/pattern_matching.rdoc, add link to control_expressions.rdoc. The documentation is "reverse-engineered" from Ruby 2.7 behavior and early preview presentations, and corrected by pattern-matching feature author @k-tsj. Notes: Merged: https://github.com/ruby/ruby/pull/2786
2019-10-10Document the difference between expressions and statements [ci skip]Jeremy Evans
In the grammar, all expressions are statements, but not all statements are expressions. Some parts of the grammar accept expressions and not other types of statements, which causes similar looking code to parse differently due to operator precedence. Mostly from Dan0042 (Daniel DeLorme). Fixes [Bug #16092]
2016-09-30* doc/syntax/control_expressions.rdoc: Add missing 'as'hsbt
[ci skip][fix GH-1448] Patch by @jsyeo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-18* doc/syntax/*.rdoc: separated modifier at sentence.hsbt
[ci skip][fix GH-1121] Patch by @clandry94 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-08* doc/syntax/control_expressions.rdoc: fix a missing "a"hsbt
[fix GH-888][ci skip] Patch by @riffraff git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-17 * doc/syntax/control_expressions.rdoc: Added ? : ternary ifdrbrain
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-16 * doc/syntax/control_expressions.rdoc (Flip-Flop): Added a section ondrbrain
the flip-flop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-16* doc/syntax/control_expressions.rdoc (if Expressions): Fixed markupdrbrain
error. Fixes #235 on github by FlyingFoX. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15* doc/syntax/control_expressions.rdoc: Omit optional "then" for if anddrbrain
unless expressions. Improved description of "a if a = 0.zero?" NameError. Note that "do" for for loop is optional. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 * doc/syntax/control_expressions.rdoc (redo Statement): Added notedrbrain
about retry. * doc/syntax/exceptions.rdoc: Added retry statement git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15* doc/syntax/control_expressions.rdoc: Added description of controldrbrain
expressions in ruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e