summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-07-03 23:15:51 (GMT)
committerBarry Warsaw <barry@python.org>1996-07-03 23:15:51 (GMT)
commit8e9d7d7e83d214411907f26b44c116f4349095f8 (patch)
tree80a5c796260317c33056bea9d82bd7a5833a5517
parent039707399e8a0c56d654aed4a297c1b6c9755ecd (diff)
downloadcpython-8e9d7d7e83d214411907f26b44c116f4349095f8.zip
cpython-8e9d7d7e83d214411907f26b44c116f4349095f8.tar.gz
cpython-8e9d7d7e83d214411907f26b44c116f4349095f8.tar.bz2
(py-mode-syntax-table): revert underscore to word class, even though I
don't agree with it.
-rw-r--r--Misc/python-mode.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 7b69745..31cd352 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -314,7 +314,11 @@ Currently-active file is at the head of the list.")
( ?\* . "." ) ( ?\+ . "." ) ( ?\- . "." )
( ?\/ . "." ) ( ?\< . "." ) ( ?\= . "." )
( ?\> . "." ) ( ?\| . "." )
- ( ?\_ . "_" ) ; underscore is legit in symbols, but not words
+ ;; Guido and I disagree about this. Underscore should be
+ ;; symbol constituent by not word. For historical
+ ;; reasons, I leave it as is. -baw
+ ;;( ?\_ . "_" ) ; underscore is legit in symbols, but not words
+ ( ?\_ . "w" ) ; underscore is legit in words
( ?\' . "\"") ; single quote is string quote
( ?\" . "\"" ) ; double quote is string quote too
( ?\` . "$") ; backquote is open and close paren