summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorSimon Pugnet <simon@polaris64.net>2023-02-09 11:33:31 +0000
committerYuan Fu <casouri@gmail.com>2023-02-09 21:54:00 -0800
commitb39821fdcef5d094838a978d2b0ab1ebb44b7cb8 (patch)
tree6264044c0ede2f061f27ba7e303ff0282c11c3d7 /admin
parent51901736965f9a6f07938fa4399d14c9283437c5 (diff)
downloademacs-b39821fdcef5d094838a978d2b0ab1ebb44b7cb8.tar.gz
; Fix incorrect function name in treesit manual
An example in the documentation uses the function 'treesit-get-parser-create' which does not exist. Replace this with 'treesit-parser-create'. * admin/notes/tree-sitter/html-manual/Multiple-Languages.html: * doc/lispref/parsing.texi (Multiple Languages): Change example. Copyright-paperwork-exempt: yes
Diffstat (limited to 'admin')
-rw-r--r--admin/notes/tree-sitter/html-manual/Multiple-Languages.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/notes/tree-sitter/html-manual/Multiple-Languages.html b/admin/notes/tree-sitter/html-manual/Multiple-Languages.html
index 65507687d51..390d9082590 100644
--- a/admin/notes/tree-sitter/html-manual/Multiple-Languages.html
+++ b/admin/notes/tree-sitter/html-manual/Multiple-Languages.html
@@ -223,9 +223,9 @@ ranges for <acronym>CSS</acronym> and JavaScript parsers:
</p>
<div class="example">
<pre class="example">;; Create parsers.
-(setq html (treesit-get-parser-create 'html))
-(setq css (treesit-get-parser-create 'css))
-(setq js (treesit-get-parser-create 'javascript))
+(setq html (treesit-parser-create 'html))
+(setq css (treesit-parser-create 'css))
+(setq js (treesit-parser-create 'javascript))
</pre><pre class="example">
</pre><pre class="example">;; Set CSS ranges.