From b39821fdcef5d094838a978d2b0ab1ebb44b7cb8 Mon Sep 17 00:00:00 2001
From: Simon Pugnet
;; 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))
;; Set CSS ranges. 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 -- 2.39.2