summaryrefslogtreecommitdiff
path: root/pygments/lexers/r.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/r.py')
-rw-r--r--pygments/lexers/r.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/r.py b/pygments/lexers/r.py
index 6ecdb95d..66d6402c 100644
--- a/pygments/lexers/r.py
+++ b/pygments/lexers/r.py
@@ -129,7 +129,7 @@ class SLexer(RegexLexer):
],
'root': [
# calls:
- ('r%s\s*(?=\()' % valid_name, Name.Function),
+ (r'(%s)\s*(?=\()' % valid_name, Name.Function),
include('statements'),
# blocks:
(r'\{|\}', Punctuation),
@@ -161,7 +161,7 @@ class RdLexer(RegexLexer):
This is a very minimal implementation, highlighting little more
than the macros. A description of Rd syntax is found in `Writing R
Extensions <http://cran.r-project.org/doc/manuals/R-exts.html>`_
- and `Parsing Rd files <developer.r-project.org/parseRd.pdf>`_.
+ and `Parsing Rd files <http://developer.r-project.org/parseRd.pdf>`_.
.. versionadded:: 1.6
"""