]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change
authorEli Zaretskii <eliz@gnu.org>
Mon, 20 Jan 2025 12:39:20 +0000 (14:39 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 20 Jan 2025 18:51:30 +0000 (19:51 +0100)
* src/treesit.c (Ftreesit_parser_create): Fix comment wording.

* doc/lispref/parsing.texi (Using Parser): Fix wording and markup.

(cherry picked from commit ad51b3b3911bcca1dba5a5b3e5581465d2277d64)

doc/lispref/parsing.texi
src/treesit.c

index 8f1ee614ff2bc2009b48a648e65f2a105b8a9b5c..034c424105b94e3a5fc9a7f2e498f3f65f47f497 100644 (file)
@@ -571,7 +571,7 @@ in the alist, creating a parser for @var{language-a} actually creates a
 parser for @var{language-b}.  By extension, anything that creates a node
 or makes a query of @var{language-a} will be redirected to use
 @var{language-b} instead.  This mapping is completely transparent, the
-parser created will report as @var{language-b}, and the sames goes for
+created parser will reported to use @var{language-b}, and the same goes for
 nodes created by this parser.
 
 Specifically, the parser created by @code{treesit-parser-create} will
@@ -583,10 +583,10 @@ if language @code{cpp} is mapped to @code{cuda}:
 (setq treesit-language-remap-alist '((cpp . cuda)))
 
 (treesit-parser-language (treesit-parser-create 'cpp))
-;; => 'cpp
+  @result{} 'cpp
 
 (treesit-parser-language (treesit-parser-create 'cuda))
-;; => 'cuda
+  @result{} 'cuda
 @end group
 @end example
 
index f179e4561cf1ffdb930a5f19c96d48a35a9182cc..d4090b949ea1b62ab586a4ee1b4e58b5c8420876 100644 (file)
@@ -1688,9 +1688,9 @@ an indirect buffer.  */)
   ts_parser_set_language (parser, lang);
 
   /* Create parser.  Use the unmapped LANGUAGE symbol, so the nodes
-     created by this parser (and this parser) self identify as the
-     unmapped language.  This makes the grammar mapping completely
-     transparent.  */
+     created by this parser (and the parser itself) identify themselves
+     as the unmapped language.  This makes the grammar mapping
+     completely transparent.  */
   Lisp_Object lisp_parser = make_treesit_parser (buf_orig,
                                                 parser, NULL,
                                                 language, tag);