]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix problem with parsing . as a symbol in bovine
authorVladimir Nikishkin <lockywolf@gmail.com>
Wed, 30 Sep 2020 16:32:32 +0000 (18:32 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Sep 2020 16:32:32 +0000 (18:32 +0200)
* lisp/cedet/semantic/bovine/scm.el (semantic-lex-scheme-symbol):
Symbols do not have to start with a word-constituent character
(bug#40034).  In particular, symbols like : and . are valid.

Copyright-paperwork-exempt: yes

lisp/cedet/semantic/bovine/scm.el

index 93ad27586ed39bc3917859cf49a1da855a149b33..b2a25bf8eefc7cfe2212f0904e302044ccc9fd42 100644 (file)
@@ -69,7 +69,7 @@ Attempts a simple prototype for calling or using TAG."
 ;; Note: Analyzer from Henry S. Thompson
 (define-lex-regex-analyzer semantic-lex-scheme-symbol
   "Detect and create symbol and keyword tokens."
-  "\\(\\sw\\([:]\\|\\sw\\|\\s_\\)*\\)"
+  "\\(\\sw\\|\\s_\\)+"
   ;; (message "symbol: %s" (match-string 0))
   (semantic-lex-push-token
    (semantic-lex-token