summaryrefslogtreecommitdiff
path: root/Lib/tokenize.py
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2004-08-02 06:10:11 +0000
committerAnthony Baxter <anthonybaxter@gmail.com>2004-08-02 06:10:11 +0000
commit0048e6eae88cdbc4977ab106914a9de1b4cb0b77 (patch)
tree93c68f220d55d1dc8ca29663071d6980ff5c53ef /Lib/tokenize.py
parent82c1e1f053c6028d10dcc61a61dc870c44077e8c (diff)
downloadcpython-0048e6eae88cdbc4977ab106914a9de1b4cb0b77.tar.gz
PEP-0318, @decorator-style. In Guido's words:
"@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
Diffstat (limited to 'Lib/tokenize.py')
-rw-r--r--Lib/tokenize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py
index 7e6fa1219a..9087e84ca0 100644
--- a/Lib/tokenize.py
+++ b/Lib/tokenize.py
@@ -83,7 +83,7 @@ Operator = group(r"\*\*=?", r">>=?", r"<<=?", r"<>", r"!=",
r"~")
Bracket = '[][(){}]'
-Special = group(r'\r?\n', r'[:;.,`]')
+Special = group(r'\r?\n', r'[:;.,`@]')
Funny = group(Operator, Bracket, Special)
PlainToken = group(Number, Funny, String, Name)