diff options
author | Alan Modra <amodra@gmail.com> | 2016-12-21 19:07:55 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-12-21 19:09:38 +1030 |
commit | 9962fe293d16e1e1e4d05154e751fc7576226954 (patch) | |
tree | d010e805061631c73e41b795f422e9fc73cc245f /gas | |
parent | 7e66a1a05d3fc6cd72e3960608f86962efcaeb9d (diff) | |
download | gdb-9962fe293d16e1e1e4d05154e751fc7576226954.zip gdb-9962fe293d16e1e1e4d05154e751fc7576226954.tar.gz gdb-9962fe293d16e1e1e4d05154e751fc7576226954.tar.bz2 |
Document character escape sequences
PR gas/10946
* doc/as.texinfo (Chars): Document escape sequences.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/doc/as.texinfo | 13 |
2 files changed, 12 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 3b86e47..6c923c3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2016-12-21 Alan Modra <amodra@gmail.com> + + PR gas/10946 + * doc/as.texinfo (Chars): Document escape sequences. + 2016-12-20 Maciej W. Rozycki <macro@imgtec.com> * testsuite/gas/mips/mips16-sub.d: New test. diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index 4b14e08..d83d2b3 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -3066,12 +3066,13 @@ sequence. @cindex single character constant @cindex character, single @cindex constant, single character -A single character may be written as a single quote immediately -followed by that character. The same escapes apply to characters as -to strings. So if you want to write the character backslash, you -must write @kbd{'\\} where the first @code{\} escapes the second -@code{\}. As you can see, the quote is an acute accent, not a -grave accent. A newline +A single character may be written as a single quote immediately followed by +that character. Some backslash escapes apply to characters, @code{\b}, +@code{\f}, @code{\n}, @code{\r}, @code{\t}, and @code{\"} with the same meaning +as for strings, plus @code{\'} for a single quote. So if you want to write the +character backslash, you must write @kbd{'\\} where the first @code{\} escapes +the second @code{\}. As you can see, the quote is an acute accent, not a grave +accent. A newline @ifclear GENERIC @ifclear abnormal-separator (or semicolon @samp{;}) |