From: Barry Warsaw Date: Wed, 3 Jul 1996 23:15:51 +0000 (+0000) Subject: (py-mode-syntax-table): revert underscore to word class, even though I X-Git-Tag: v1.4b2~223 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e9d7d7e83d214411907f26b44c116f4349095f8;p=python (py-mode-syntax-table): revert underscore to word class, even though I don't agree with it. --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 7b69745c12..31cd35251f 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