From: Eric Ludlam Date: Wed, 26 Nov 2014 15:42:32 +0000 (-0500) Subject: semantic: Fix for Python lexer X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=03bb495ea495dca46e418561461f7b1e71b0c214;p=emacs.git semantic: Fix for Python lexer * lisp/cedet/semantic/wisent/python.el (wisent-python-default-setup): Add syntax mod for . as punctuation. --- diff --git a/lisp/cedet/semantic/wisent/python.el b/lisp/cedet/semantic/wisent/python.el index 4e7ee3d0cf5..6170a0dbc51 100644 --- a/lisp/cedet/semantic/wisent/python.el +++ b/lisp/cedet/semantic/wisent/python.el @@ -511,6 +511,10 @@ Shortens `code' tags, but passes through for others." ;; Give python modes the possibility to overwrite this: (if (not comment-start-skip) (set (make-local-variable 'comment-start-skip) "#+\\s-*")) + ;; Fix up some syntax for the lexer. + (setq semantic-lex-syntax-modifications '((?. ".") + ) + ) (setq ;; Character used to separation a parent/child relationship semantic-type-relation-separator-character '(".")