aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-08-25 08:48:23 +0300
committerEli Zaretskii2024-08-25 08:48:23 +0300
commit8a94cee3b58a59eac6ca24c001769f0fe12bf020 (patch)
tree061d02076a84294031151b801826a4fb5d1c52eb /src
parentf322905f6a31deb8da7f3d40a87e5ea097df5a73 (diff)
downloademacs-8a94cee3b58a59eac6ca24c001769f0fe12bf020.tar.gz
emacs-8a94cee3b58a59eac6ca24c001769f0fe12bf020.zip
; * src/treesit.c (Ftreesit_parse_string): Fix comment and punctuation.
Diffstat (limited to 'src')
-rw-r--r--src/treesit.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/treesit.c b/src/treesit.c
index 218cb7407a8..5aedca44489 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -1863,16 +1863,16 @@ positions. PARSER is the parser issuing the notification. */)
1863 return Qnil; 1863 return Qnil;
1864} 1864}
1865 1865
1866// Why don't we use ts_parse_string? I tried, but it requires too much 1866/* Why don't we use ts_parse_string? I tried, but it requires too much
1867// change throughout treesit.c: we either return a root node that has no 1867 change throughout treesit.c: we either return a root node that has no
1868// associated parser, or one that has a parser but the parser doesn't 1868 associated parser, or one that has a parser but the parser doesn't
1869// have associated buffer. Both route requires us to add checks and 1869 have associated buffer. Both routes require us to add checks and
1870// branches everytime we use the parser of a node or the buffer of a 1870 branches everywhere we use the parser of a node or the buffer of a
1871// parser. I tried route 1, and found that on top of needing to add a 1871 parser. I tried route 1, and found that on top of the need to add a
1872// bunch of branches to handle the no-parser case, many functions 1872 bunch of branches to handle the no-parser case, many functions
1873// requires a parser alongside the node (getting the tree, or language 1873 require a parser alongside the node (getting the tree, or language
1874// symbol, etc), and I would need to rewrite those as well. Overall 1874 symbol, etc), and I would need to rewrite those as well. Overall,
1875// it's just not worth it--this is just a convenience function. --yuan 1875 it's just not worth it--this is just a convenience function. --yuan */
1876DEFUN ("treesit-parse-string", 1876DEFUN ("treesit-parse-string",
1877 Ftreesit_parse_string, Streesit_parse_string, 1877 Ftreesit_parse_string, Streesit_parse_string,
1878 2, 2, 0, 1878 2, 2, 0,