summaryrefslogtreecommitdiff
path: root/doc/lispref/parsing.texi
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 /doc/lispref/parsing.texi
parent51901736965f9a6f07938fa4399d14c9283437c5 (diff)
downloademacs-b39821fdcef5d094838a978d2b0ab1ebb44b7cb8.tar.gz
emacs-b39821fdcef5d094838a978d2b0ab1ebb44b7cb8.tar.bz2
emacs-b39821fdcef5d094838a978d2b0ab1ebb44b7cb8.zip
; 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 'doc/lispref/parsing.texi')
-rw-r--r--doc/lispref/parsing.texi6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index 6e13af9a20f..53787d7e54d 100644
--- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -1589,9 +1589,9 @@ ranges for @acronym{CSS} and JavaScript parsers:
@example
@group
;; 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))
@end group
@group