unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Python, syntax-ppss
@ 2023-02-06 10:54 Andreas Röhler
  2023-02-06 11:53 ` Arash Esbati
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2023-02-06 10:54 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-06 13:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-06 10:54 Python, syntax-ppss Andreas Röhler
2023-02-06 11:53 ` Arash Esbati
2023-02-06 13:43   ` Andreas Röhler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).