diff options
author | Yuan Fu <casouri@gmail.com> | 2022-10-07 18:06:04 -0700 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-10-09 17:20:26 -0700 |
commit | 9f7c359f4023570616c9961487069ba1122a5bb0 (patch) | |
tree | a4923e6fc969887e15624ccfea920a966a3b45ea /admin/notes | |
parent | 8bc6e31502244ca16bbf7b163a7a321ec9094882 (diff) | |
download | emacs-9f7c359f4023570616c9961487069ba1122a5bb0.tar.gz emacs-9f7c359f4023570616c9961487069ba1122a5bb0.tar.bz2 emacs-9f7c359f4023570616c9961487069ba1122a5bb0.zip |
Add note on tree-sitter's naming convention
* admin/notes/tree-sitter/starter-guide: Add note.
* doc/lispref/parsing.texi: Add note.
Diffstat (limited to 'admin/notes')
-rw-r--r-- | admin/notes/tree-sitter/starter-guide | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/notes/tree-sitter/starter-guide b/admin/notes/tree-sitter/starter-guide index 129f9ee5fa4..378ff581afa 100644 --- a/admin/notes/tree-sitter/starter-guide +++ b/admin/notes/tree-sitter/starter-guide @@ -8,6 +8,7 @@ TOC: - Building Emacs with tree-sitter - Install language definitions - Setup +- Naming convention - Font-lock - Indent - Imenu @@ -94,6 +95,12 @@ Then in other places, we decide on whether to enable tree-sitter by (treesit-can-enable-p)) #+end_src +* Naming convention + +When referring to tree-sitter as a noun, use “tree-sitter”, like +python-use-tree-sitter. For prefix use “treesit”, like +python-treesit-indent. + * Font-lock Tree-sitter works like this: You provide a query made of patterns and |