1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

21 commits

Author SHA1 Message Date
normal
90fdfec11a doc: Fix error for escape sequences in string literals
Backslash goes first in escape sequences, so it must be
"any other character following a backslash is interpreted as ...",
while the doc says "...followed by...".

Author: Marcus Stollsteimer <sto.mar@web.de>
[ruby-core:79418] [Bug #13190]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-03 23:34:48 +00:00
hsbt
4f94cb43fc * doc/syntax/*.rdoc: separated modifier at sentence.
[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-12-18 03:39:49 +00:00
nobu
9a28a29b87 parse.y: indented hereoc
* parse.y: add heredoc <<~ syntax.  [Feature #9098]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-07 14:39:52 +00:00
knu
11b804feee [DOC] Remove \0 since it's aprt of octal notation
A typo is fixed while at it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:58:56 +00:00
knu
5ac401c8dc [DOC] \0 is interpreted as NUL only if not followed by an octal digit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:31:39 +00:00
nobu
2b89d63e61 literals.rdoc: add DEL [ci skip]
* doc/syntax/literals.rdoc (Strings): [DOC] add DEL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:21:13 +00:00
knu
6989f24117 [DOC] Revise the character literal part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:16:15 +00:00
knu
d23857e558 [DOC] Document the full list of supported escape sequences in string literals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 06:03:18 +00:00
nobu
22190b3f32 literals.rdoc: fix typos
* doc/syntax/literals.rdoc (Strings): fix typos.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 05:31:26 +00:00
usa
35947f6d42 * doc/syntax/literals.rdoc (Strings): mention about ?a literal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-16 04:24:31 +00:00
normal
12c2ad515e doc/syntax/literals.rdoc: spelling fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-29 16:54:32 +00:00
nobu
d1e65737f6 literals.rdoc: quoted symbol keys
* doc/syntax/literals.rdoc (Hashes): describe about quoted symbol
  keys.

[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-29 05:29:28 +00:00
nobu
25dddf158c literals.rdoc: Update for symbol literals
* doc/syntax/literals.rdoc (Symbols): now Symbols created by
  interpolation can be garbage collected.  patch by Yihang Ho in
  [ruby-core:67194].  [Bug #10671]
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-29 05:27:36 +00:00
zzak
cac997eb95 * doc/syntax/literals.rdoc: [DOC] Single quote strings allows escape
of backslash as well, patch by @idupree [Fixes GH-553] [ci skip]
  https://github.com/ruby/ruby/pull/553


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-14 03:09:17 +00:00
zzak
077fa24833 * doc/syntax/literals.rdoc: [DOC] String literal concat by @cknadler
[Fixes GH-380] https://github.com/ruby/ruby/pull/380


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-12 23:54:38 +00:00
charliesome
a5c3ca07f8 * doc/syntax/literals.rdoc: Use single quotes instead of double quotes
[Bug #8766] [ruby-core:56514]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-10 20:56:13 +00:00
drbrain
d86ee14c5a * doc/syntax/literals.rdoc (Strings): Fixed typo. Fixes #236 on
github by Doug Yun.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-16 21:54:31 +00:00
drbrain
8255e83912 * doc/syntax/literals.rdoc: Added 0d decimal format. Thanks Nobu!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-19 07:30:58 +00:00
drbrain
aa233d3f33 * doc/syntax/literals.rdoc: Used simplified heredoc example that
doesn't include method definition.  Added heredoc with backticks.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-18 07:46:33 +00:00
drbrain
87f099d069 * doc/syntax/literals.rdoc: Added 0o octal integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-18 02:48:35 +00:00
drbrain
29fd593475 * doc/syntax.rdoc: Added syntax guide table of contents
* doc/syntax/exceptions.rdoc:  Syntax guide for exceptions
* doc/syntax/literals.rdoc:  Syntax guide for literals
* doc/syntax/methods.rdoc:  Syntax guide for methods


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-17 02:26:15 +00:00