diff Misc/python-mode.el @ 3745:6080b2ebc1f1 legacy-trunk

(py-mode-syntax-table): revert underscore to word class, even though I don't agree with it.
author Barry Warsaw <barry@python.org>
date Wed, 03 Jul 1996 23:15:51 +0000
parents ffdf1f06cf8b
children 7504884e8a74
line wrap: on
line diff
--- a/Misc/python-mode.el	Wed Jul 03 23:12:52 1996 +0000
+++ b/Misc/python-mode.el	Wed Jul 03 23:15:51 1996 +0000
@@ -314,7 +314,11 @@
 	    ( ?\* . "." ) ( ?\+ . "." ) ( ?\- . "." )
 	    ( ?\/ . "." ) ( ?\< . "." ) ( ?\= . "." )
 	    ( ?\> . "." ) ( ?\| . "." )
-	    ( ?\_ . "_" )	; 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