summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_r.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_r.py b/tests/test_r.py
index a6464480..d0e9090b 100644
--- a/tests/test_r.py
+++ b/tests/test_r.py
@@ -48,6 +48,15 @@ class RTest(unittest.TestCase):
]
self.assertEqual(tokens, list(self.lexer.get_tokens(fragment)))
+ def testName3(self):
+ # Internal backticks can be escaped
+ fragment = u'`.1 \` blah`'
+ tokens = [
+ (Name, u'`.1 \` blah`'),
+ (Token.Text, u'\n'),
+ ]
+ self.assertEqual(tokens, list(self.lexer.get_tokens(fragment)))
+
def testCustomOperator(self):
fragment = u'7 % and % 8'
tokens = [