Variable: semantic-lex-newline-as-whitespace

semantic-lex-newline-as-whitespace is a variable defined in lex.el.gz.

Value

((looking-at "\\s-*\\(\n\\|\\s>\\)")
 (if
     (eq
      (semantic-lex-token-class
       (car semantic-lex-token-stream))
      'whitespace)
     (setcdr
      (semantic-lex-token-bounds
       (car semantic-lex-token-stream))
      (match-end 0))
   (semantic-lex-push-token
    (semantic-lex-token 'whitespace
			(match-beginning 0)
			(match-end 0)))))

Documentation

Detect and create newline tokens.

Use this ONLY if newlines are not whitespace characters (such as when they are comment end characters) AND when you want whitespace tokens.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/lex.el.gz
(define-lex-regex-analyzer semantic-lex-newline-as-whitespace
  "Detect and create newline tokens.
Use this ONLY if newlines are not whitespace characters (such as when
they are comment end characters) AND when you want whitespace tokens."
  "\\s-*\\(\n\\|\\s>\\)"
  ;; Language wants whitespaces.  Create a token for it.
  (if (eq (semantic-lex-token-class (car semantic-lex-token-stream))
	  'whitespace)
      ;; Merge whitespace tokens together if they are adjacent.  Two
      ;; whitespace tokens may be separated by a comment which is not in
      ;; the token stream.
      (setcdr (semantic-lex-token-bounds (car semantic-lex-token-stream))
              (match-end 0))
    (semantic-lex-push-token
     (semantic-lex-token
      'whitespace (match-beginning 0) (match-end 0)))))