]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/treesit.h (struct Lisp_TS_Parser): Correct merge error.
authorPo Lu <luangruo@yahoo.com>
Wed, 11 Sep 2024 05:25:48 +0000 (13:25 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:21:15 +0000 (22:21 +0200)
(cherry picked from commit a139c3d6d888219bb3cb3c0c5a3eb6268c9b7a29)

src/treesit.h

index cd84fa358c54050ab635ef4b62bc08d893f69feb..e20611eac67642f2977a4dd9f7cafc32d853f2c0 100644 (file)
@@ -86,6 +86,10 @@ struct Lisp_TS_Parser
      associated buffer.  This is for parsers created by
      treesit-parse-string, which uses a hidden temp buffer.  */
   bool need_to_gc_buffer;
+  /* This field is set to true when treesit_ensure_parsed runs, to
+     prevent infinite recursion due to calling after change
+     functions.  */
+  bool within_reparse;
 };
 
 /* A wrapper around a tree-sitter node.  */