Skip to content

Commit 9953bc0

Browse files
committed
more Rd keywords: \manual, \bib* and \I{} (ok ?)
1 parent 8369d57 commit 9953bc0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lisp/ess-rd.el

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;; ess-rd.el --- Support for editing R documentation (Rd) source -*- lexical-binding: t; -*-
22

3-
;; Copyright (C) 1997-2023 Free Software Foundation, Inc.
3+
;; Copyright (C) 1997-2025 Free Software Foundation, Inc.
44
;; Author: KH <[email protected]>
55
;; Created: 25 July 1997
66
;; Maintainer: ESS-core <[email protected]>
@@ -48,6 +48,7 @@
4848
("`al" "\\alias" nil :system t)
4949
("`au" "\\author" nil :system t)
5050
("`bf" "\\bold" nil :system t)
51+
;; not (yet) "bibcitep" "bibcitet" "bibshow" "bibinfo"
5152
("`co" "\\code" nil :system t)
5253
("`de" "\\describe" nil :system t)
5354
("`dn" "\\description" nil :system t)
@@ -62,6 +63,7 @@
6263
("`kw" "\\keyword" nil :system t)
6364
("`li" "\\link" nil :system t)
6465
("`me" "\\method" nil :system t)
66+
("`ma" "\\manual" nil :system t)
6567
("`na" "\\name" nil :system t)
6668
("`no" "\\note" nil :system t)
6769
("`re" "\\references" nil :system t)
@@ -122,7 +124,7 @@ All Rd mode abbrevs start with a grave accent (`)."
122124
"tabular" "title" "usage"
123125
"value"))
124126

125-
(defvar Rd-keywords
127+
(defvar Rd-keywords ; to be highlighted in Rd-mode
126128
'(
127129
;; the next two lines: only valid in R <= 2.8.1
128130
;; commented out on 2011-01-14 for ESS version 5.13:
@@ -136,11 +138,14 @@ All Rd mode abbrevs start with a grave accent (`)."
136138
"href"
137139
"ifelse" "if"
138140
"item" "kbd" "ldots" "linkS4class" "link" "method"
141+
"manual"
139142
"newcommand" "option" "out"
140143
"pkg" "sQuote" "renewcommand"
141144
"samp" "strong" "tab" "url" "var" "verb"
142145
;; System macros (from <R>/share/Rd/macros/system.Rd ):
146+
"bibcitep" "bibcitet" "bibshow" "bibinfo"
143147
"CRANpkg" "PR" "sspace" "doi"
148+
"I" ; should we?
144149
"LaTeX"
145150
"proglang"
146151
"packageTitle" "packageDescription" "packageAuthor"

0 commit comments

Comments
 (0)