From 03bb495ea495dca46e418561461f7b1e71b0c214 Mon Sep 17 00:00:00 2001 From: Eric Ludlam Date: Wed, 26 Nov 2014 10:42:32 -0500 Subject: [PATCH] semantic: Fix for Python lexer * lisp/cedet/semantic/wisent/python.el (wisent-python-default-setup): Add syntax mod for . as punctuation. --- lisp/cedet/semantic/wisent/python.el | 4 ++++ 1 file changed, 4 insertions(+) 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 '(".") -- 2.39.5