Mercurial > emacs
comparison lisp/emacs-lisp/syntax.el @ 109793:b60dcdd855f0
Merge from mainline.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Sun, 08 Aug 2010 22:52:25 +0000 |
parents | e3caf0b09548 |
children | 98d8e4cd2326 376148b31b5e |
comparison
equal
deleted
inserted
replaced
109649:1f8f03cfcd2b | 109793:b60dcdd855f0 |
---|---|
50 (defsubst syntax-ppss-depth (ppss) | 50 (defsubst syntax-ppss-depth (ppss) |
51 (nth 0 ppss)) | 51 (nth 0 ppss)) |
52 | 52 |
53 (defun syntax-ppss-toplevel-pos (ppss) | 53 (defun syntax-ppss-toplevel-pos (ppss) |
54 "Get the latest syntactically outermost position found in a syntactic scan. | 54 "Get the latest syntactically outermost position found in a syntactic scan. |
55 PPSS is a scan state, as returned by `partial-parse-sexp' or `syntax-ppss'. | 55 PPSS is a scan state, as returned by `parse-partial-sexp' or `syntax-ppss'. |
56 An \"outermost position\" means one that it is outside of any syntactic entity: | 56 An \"outermost position\" means one that it is outside of any syntactic entity: |
57 outside of any parentheses, comments, or strings encountered in the scan. | 57 outside of any parentheses, comments, or strings encountered in the scan. |
58 If no such position is recorded in PPSS (because the end of the scan was | 58 If no such position is recorded in PPSS (because the end of the scan was |
59 itself at the outermost level), return nil." | 59 itself at the outermost level), return nil." |
60 ;; BEWARE! We rely on the undocumented 9th field. The 9th field currently | 60 ;; BEWARE! We rely on the undocumented 9th field. The 9th field currently |