Function: semantic-lex-symbol-or-keyword

semantic-lex-symbol-or-keyword is a byte-compiled function defined in lex.el.gz.

Signature

(semantic-lex-symbol-or-keyword)

Documentation

Detect and create symbol and keyword tokens.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/lex.el.gz
(define-lex-regex-analyzer semantic-lex-symbol-or-keyword
  "Detect and create symbol and keyword tokens."
  "\\(\\sw\\|\\s_\\)+"
  (semantic-lex-push-token
   (semantic-lex-token
    (or (semantic-lex-keyword-p (match-string 0)) 'symbol)
    (match-beginning 0) (match-end 0))))