syntax: man, groff: fix the string that introduces a comment
The comment marker is not «."» but «.\"», which requires three backslashes to specify. Also adjust the documentation.master
parent
025232b25b
commit
09f516a58b
|
@ -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
|
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
|
character is present, the entire string is prepended; for example, @t{"#"} for
|
||||||
Python files. If empty double quotes are specified, the comment/uncomment
|
Python files. If empty double quotes are specified, the comment/uncomment
|
||||||
functions are disabled; for example, @t{""} for JSON. Double quotes or backslashes
|
functions are disabled; for example, @t{""} for JSON. Backslashes and double quotes
|
||||||
may be escaped with a backslash; for example, @t{".\\""} for man page source.
|
should be escaped with a backslash; for example, @t{".\\\""} for man page source.
|
||||||
The default value is @t{"#"}.
|
The default value is @t{"#"}.
|
||||||
|
|
||||||
@item color fgcolor,bgcolor "regex" @dots{}
|
@item color fgcolor,bgcolor "regex" @dots{}
|
||||||
|
|
|
@ -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
|
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
|
character is present, the entire string is prepended; for example, "\fB#\fP" for
|
||||||
Python files. If empty double quotes are specified, the comment/uncomment
|
Python files. If empty double quotes are specified, the comment/uncomment
|
||||||
function is disabled; for example, "" for JSON. Double quotes or backslashes
|
function is disabled; for example, "" for JSON. Backslashes and double quotes
|
||||||
may be escaped with a backslash; for example, "\fB.\\"\fP" for man page source.
|
should be escaped with a backslash; for example, "\fB.\\\"\fP" for man page source.
|
||||||
The default value is "\fB#\fP".
|
The default value is "\fB#\fP".
|
||||||
.TP
|
.TP
|
||||||
.B color \fIfgcolor\fR,\fIbgcolor\fR """\fIregex\fR""" ...
|
.B color \fIfgcolor\fR,\fIbgcolor\fR """\fIregex\fR""" ...
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Here is an example for groff.
|
## Here is an example for groff.
|
||||||
|
|
||||||
syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
|
syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
|
||||||
comment ".\""
|
comment ".\\\""
|
||||||
|
|
||||||
# The argument of .ds or .nr
|
# The argument of .ds or .nr
|
||||||
color cyan "^\.(ds|nr) [^[:space:]]*"
|
color cyan "^\.(ds|nr) [^[:space:]]*"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
syntax "man" "\.[1-9]x?$"
|
syntax "man" "\.[1-9]x?$"
|
||||||
magic "troff or preprocessor input text"
|
magic "troff or preprocessor input text"
|
||||||
comment ".\""
|
comment ".\\\""
|
||||||
|
|
||||||
color green "\.(SH|SS|TH) .*$"
|
color green "\.(SH|SS|TH) .*$"
|
||||||
color brightgreen "\.(SH|SS|TH) " "\.([HIT]P)"
|
color brightgreen "\.(SH|SS|TH) " "\.([HIT]P)"
|
||||||
|
|
Loading…
Reference in New Issue