help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python, syntax-ppss


From: Andreas Röhler
Subject: Python, syntax-ppss
Date: Mon, 6 Feb 2023 11:54:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

Hi,

when calling (syntax-ppss) at the end of the Python snippet below, it yields

(1 6 7 34 nil nil 0 nil 8 (6) nil)

whereas nth 1 --depth in parens--, should tell "2", as the opening curly bracket should count too:

---
print(f"Addition: {m1 + m2
---

Right?

Thanks,

Andreas

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-02-01




reply via email to

[Prev in Thread] Current Thread [Next in Thread]