Function: syntax-ppss-context

syntax-ppss-context is a byte-compiled function defined in syntax.el.gz.

Signature

(syntax-ppss-context PPSS)

Documentation

Say whether PPSS is a string, a comment, or something else.

If PPSS is a string, the symbol string is returned. If it's a comment, the symbol comment is returned. If it's something else, nil is returned.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/syntax.el.gz
(defsubst syntax-ppss-context (ppss)
  "Say whether PPSS is a string, a comment, or something else.
If PPSS is a string, the symbol `string' is returned.  If it's a
comment, the symbol `comment' is returned.  If it's something
else, nil is returned."
  (cond
   ((nth 3 ppss) 'string)
   ((nth 4 ppss) 'comment)
   (t nil)))