]> granicus.if.org Git - python/commitdiff
(py-mode-syntax-table): revert underscore to word class, even though I
authorBarry Warsaw <barry@python.org>
Wed, 3 Jul 1996 23:15:51 +0000 (23:15 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 3 Jul 1996 23:15:51 +0000 (23:15 +0000)
don't agree with it.

Misc/python-mode.el

index 7b69745c12e252a8747edd7ee13c1333d1b0d0c8..31cd35251f14f778f4cdd3cc56fa8bc83b2533a8 100644 (file)
@@ -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