diff --git a/doc/nano.texi b/doc/nano.texi
index 6f5e6644473faa33a517276dde6c602dc1029b4f..f19d237c0599879288866f70a518ca192796d74a 100644
--- a/doc/nano.texi
+++ b/doc/nano.texi
@@ -937,8 +937,8 @@ CSS files.  The characters before the pipe are prepended to the line and the
 characters after the pipe are appended at the end of the line.  If no pipe
 character is present, the entire string is prepended; for example, @t{"#"} for
 Python files.  If empty double quotes are specified, the comment/uncomment
-functions are disabled; for example, @t{""} for JSON.  Double quotes or backslashes
-may be escaped with a backslash; for example, @t{".\\""} for man page source.
+functions are disabled; for example, @t{""} for JSON.  Backslashes and double quotes
+should be escaped with a backslash; for example, @t{".\\\""} for man page source.
 The default value is @t{"#"}.
 
 @item color fgcolor,bgcolor "regex" @dots{}
diff --git a/doc/nanorc.5 b/doc/nanorc.5
index b38ccc41d741c4f56080703402289624001131ed..565401f0641cc8146beeba3ba7d16ba929acf992 100644
--- a/doc/nanorc.5
+++ b/doc/nanorc.5
@@ -335,8 +335,8 @@ CSS files.  The characters before the pipe are prepended to the line and the
 characters after the pipe are appended at the end of the line.  If no pipe
 character is present, the entire string is prepended; for example, "\fB#\fP" for
 Python files.  If empty double quotes are specified, the comment/uncomment
-function is disabled; for example, "" for JSON.  Double quotes or backslashes
-may be escaped with a backslash; for example, "\fB.\\"\fP" for man page source.
+function is disabled; for example, "" for JSON.  Backslashes and double quotes
+should be escaped with a backslash; for example, "\fB.\\\"\fP" for man page source.
 The default value is "\fB#\fP".
 .TP
 .B color \fIfgcolor\fR,\fIbgcolor\fR """\fIregex\fR""" ...
diff --git a/syntax/groff.nanorc b/syntax/groff.nanorc
index 109f9cd6be4be314270478cbd5fdb6e174f9b2ca..f97a1ca231201066e99e3b2988e9ec0db5cca077 100644
--- a/syntax/groff.nanorc
+++ b/syntax/groff.nanorc
@@ -1,7 +1,7 @@
 ## Here is an example for groff.
 
 syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
-comment ".\""
+comment ".\\\""
 
 # The argument of .ds or .nr
 color cyan "^\.(ds|nr) [^[:space:]]*"
diff --git a/syntax/man.nanorc b/syntax/man.nanorc
index dd7d23ea5a615c8e119cf5ca356cdb0d2d3eeebc..e5da5becd21a38a1c4bd8a14b7c6f5df3872cc79 100644
--- a/syntax/man.nanorc
+++ b/syntax/man.nanorc
@@ -2,7 +2,7 @@
 
 syntax "man" "\.[1-9]x?$"
 magic "troff or preprocessor input text"
-comment ".\""
+comment ".\\\""
 
 color green "\.(SH|SS|TH) .*$"
 color brightgreen "\.(SH|SS|TH) " "\.([HIT]P)"