From b39821fdcef5d094838a978d2b0ab1ebb44b7cb8 Mon Sep 17 00:00:00 2001 From: Simon Pugnet Date: Thu, 9 Feb 2023 11:33:31 +0000 Subject: ; 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 --- admin/notes/tree-sitter/html-manual/Multiple-Languages.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'admin') 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 CSS and JavaScript parsers:

;; 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.
-- 
cgit v1.2.3


From 10af9fbcad107ae76f50d408e0d6d04e082cc6d8 Mon Sep 17 00:00:00 2001
From: "Basil L. Contovounesios" 
Date: Fri, 10 Feb 2023 15:24:45 +0000
Subject: ; * admin/notes/tree-sitter/starter-guide: Typos.

Reported by Romanos Skiadas .
---
 admin/notes/tree-sitter/starter-guide | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'admin')

diff --git a/admin/notes/tree-sitter/starter-guide b/admin/notes/tree-sitter/starter-guide
index 606f7891dfa..b8910aab5ca 100644
--- a/admin/notes/tree-sitter/starter-guide
+++ b/admin/notes/tree-sitter/starter-guide
@@ -45,7 +45,7 @@ You can use this script that I put together here:
 You can also find them under this directory in /build-modules.
 
 This script automatically pulls and builds language definitions for C,
-C++, Rust, JSON, Go, HTML, Javascript, CSS, Python, Typescript,
+C++, Rust, JSON, Go, HTML, JavaScript, CSS, Python, Typescript,
 and C#. Better yet, I pre-built these language definitions for
 GNU/Linux and macOS, they can be downloaded here:
 
@@ -271,7 +271,7 @@ Matchers and anchors are functions that takes (NODE PARENT BOL &rest
 _). Matches return nil/non-nil for no match/match, and anchors return
 the anchor point. Below are some convenient builtin matchers and anchors.
 
-For MATHCER we have
+For MATCHER we have
 
     (parent-is TYPE) => matches if PARENT’s type matches TYPE as regexp
     (node-is TYPE) => matches NODE’s type
-- 
cgit v1.2.3