diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2006-12-18 14:02:30 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2006-12-18 14:02:30 +0000 |
commit | be357779dd7449dcbaf05a66feb966a92ff97123 (patch) | |
tree | a50ec7c14fce56fffa17f0c8c55058c278539ca2 /lisp/emacs-lisp/syntax.el | |
parent | 7e4661393919dce268d25def2cb8287a2331b4be (diff) | |
download | emacs-be357779dd7449dcbaf05a66feb966a92ff97123.tar.gz |
(syntax-ppss-toplevel-pos): Improve docstring.
Diffstat (limited to 'lisp/emacs-lisp/syntax.el')
-rw-r--r-- | lisp/emacs-lisp/syntax.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el index f290db42c04..619fa18e91f 100644 --- a/lisp/emacs-lisp/syntax.el +++ b/lisp/emacs-lisp/syntax.el @@ -53,10 +53,12 @@ (nth 0 ppss)) (defun syntax-ppss-toplevel-pos (ppss) - "Return the last preceding position at toplevel. -\"At toplevel\" means that it is outside of any syntactic entity: -outside of any parentheses, or comments, or strings. -Returns nil iff PPSS itself corresponds to a toplevel position." + "Get the latest syntactically outermost position found in a syntactic scan. +PPSS is a scan state, as returned by `partial-parse-sexp' or `syntax-ppss'. +An \"outermost position\" means one that it is outside of any syntactic entity: +outside of any parentheses, comments, or strings encountered in the scan. +If no such position is recorded in PPSS (because the end of the scan was +itself at the outermost level), return nil." (or (car (nth 9 ppss)) (nth 8 ppss))) |