aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/syntax.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 850921353d6..edfdae22590 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3530,7 +3530,25 @@ Parsing stops at TO or when certain criteria are met;
3530If fifth arg OLDSTATE is omitted or nil, 3530If fifth arg OLDSTATE is omitted or nil,
3531 parsing assumes that FROM is the beginning of a function. 3531 parsing assumes that FROM is the beginning of a function.
3532 3532
3533See `syntax-ppss' for a description of the return value. 3533Value is a list of elements describing final state of parsing:
3534 0. depth in parens.
3535 1. character address of start of innermost containing list; nil if none.
3536 2. character address of start of last complete sexp terminated.
3537 3. non-nil if inside a string.
3538 (it is the character that will terminate the string,
3539 or t if the string should be terminated by a generic string delimiter.)
3540 4. nil if outside a comment, t if inside a non-nestable comment,
3541 else an integer (the current comment nesting).
3542 5. t if following a quote character.
3543 6. the minimum paren-depth encountered during this scan.
3544 7. style of comment, if any.
3545 8. character address of start of comment or string; nil if not in one.
3546 9. List of positions of currently open parens, outermost first.
354710. When the last position scanned holds the first character of a
3548 (potential) two character construct, the syntax of that position,
3549 otherwise nil. That construct can be a two character comment
3550 delimiter or an Escaped or Char-quoted character.
355111..... Possible further internal information used by `parse-partial-sexp'.
3534 3552
3535If third arg TARGETDEPTH is non-nil, parsing stops if the depth 3553If third arg TARGETDEPTH is non-nil, parsing stops if the depth
3536in parentheses becomes equal to TARGETDEPTH. 3554in parentheses becomes equal to TARGETDEPTH.