]> git.eshelyaron.com Git - emacs.git/commitdiff
semantic: Fix for Python lexer
authorEric Ludlam <zappo@gnu.org>
Wed, 26 Nov 2014 15:42:32 +0000 (10:42 -0500)
committerDavid Engster <deng@randomsample.de>
Mon, 23 Jan 2017 21:03:47 +0000 (22:03 +0100)
* lisp/cedet/semantic/wisent/python.el (wisent-python-default-setup):
  Add syntax mod for . as punctuation.

lisp/cedet/semantic/wisent/python.el

index 4e7ee3d0cf5ea321e968b84a033909469623d0af..6170a0dbc51243e812896f6f8b089dea36a36db7 100644 (file)
@@ -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 '(".")