diff options
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/nroff-mode.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el index ad0485fbb30..086f5156f28 100644 --- a/lisp/textmodes/nroff-mode.el +++ b/lisp/textmodes/nroff-mode.el | |||
| @@ -66,6 +66,8 @@ | |||
| 66 | ;; ' used otherwise). | 66 | ;; ' used otherwise). |
| 67 | (modify-syntax-entry ?\" "\" 2" st) | 67 | (modify-syntax-entry ?\" "\" 2" st) |
| 68 | ;; Comments are delimited by \" and newline. | 68 | ;; Comments are delimited by \" and newline. |
| 69 | ;; And in groff also \# to newline. | ||
| 70 | (modify-syntax-entry ?# ". 2" st) | ||
| 69 | (modify-syntax-entry ?\\ "\\ 1" st) | 71 | (modify-syntax-entry ?\\ "\\ 1" st) |
| 70 | (modify-syntax-entry ?\n ">" st) | 72 | (modify-syntax-entry ?\n ">" st) |
| 71 | st) | 73 | st) |
| @@ -92,7 +94,7 @@ | |||
| 92 | (mapconcat 'identity | 94 | (mapconcat 'identity |
| 93 | '("[f*n]*\\[.+?]" ; some groff extensions | 95 | '("[f*n]*\\[.+?]" ; some groff extensions |
| 94 | "(.." ; two chars after ( | 96 | "(.." ; two chars after ( |
| 95 | "[^(\"]" ; single char escape | 97 | "[^(\"#]" ; single char escape |
| 96 | ) "\\|") | 98 | ) "\\|") |
| 97 | "\\)") | 99 | "\\)") |
| 98 | ) | 100 | ) |
| @@ -127,7 +129,7 @@ closing requests for requests that are used in matched pairs." | |||
| 127 | (concat "[.']\\|" paragraph-separate)) | 129 | (concat "[.']\\|" paragraph-separate)) |
| 128 | ;; comment syntax added by mit-erl!gildea 18 Apr 86 | 130 | ;; comment syntax added by mit-erl!gildea 18 Apr 86 |
| 129 | (set (make-local-variable 'comment-start) "\\\" ") | 131 | (set (make-local-variable 'comment-start) "\\\" ") |
| 130 | (set (make-local-variable 'comment-start-skip) "\\\\\"[ \t]*") | 132 | (set (make-local-variable 'comment-start-skip) "\\\\[\"#][ \t]*") |
| 131 | (set (make-local-variable 'comment-column) 24) | 133 | (set (make-local-variable 'comment-column) 24) |
| 132 | (set (make-local-variable 'comment-indent-function) 'nroff-comment-indent) | 134 | (set (make-local-variable 'comment-indent-function) 'nroff-comment-indent) |
| 133 | (set (make-local-variable 'imenu-generic-expression) nroff-imenu-expression)) | 135 | (set (make-local-variable 'imenu-generic-expression) nroff-imenu-expression)) |