diff options
author | Yuan Fu <casouri@gmail.com> | 2022-11-21 13:33:03 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-11-21 13:33:03 -0800 |
commit | eb1a35adc1c5a1a9d14ec8594580c5eb0e3d28fe (patch) | |
tree | bed9c388781db2ab5bfeb38e266d80b2c82e1078 /admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html | |
parent | abf40a41aaa71354eee50bedc04fe2123dd3836f (diff) | |
download | emacs-eb1a35adc1c5a1a9d14ec8594580c5eb0e3d28fe.tar.gz emacs-eb1a35adc1c5a1a9d14ec8594580c5eb0e3d28fe.tar.bz2 emacs-eb1a35adc1c5a1a9d14ec8594580c5eb0e3d28fe.zip |
; Update tree-sitter starter guide
* admin/notes/tree-sitter/starter-guide: Reflect recent changes.
* admin/notes/tree-sitter/html-manual/Using-Parser.html:
* admin/notes/tree-sitter/html-manual/Tree_002dsitter-C-API.html:
* admin/notes/tree-sitter/html-manual/Parsing-Program-Source.html:
* admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html:
* admin/notes/tree-sitter/html-manual/Parser_002dbased-Font-Lock.html:
* admin/notes/tree-sitter/html-manual/Multiple-Languages.html:
* admin/notes/tree-sitter/html-manual/Language-Definitions.html: Update.
Diffstat (limited to 'admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html')
-rw-r--r-- | admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html b/admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html index 5ea1f9bc332..3027bbaae95 100644 --- a/admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html +++ b/admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html @@ -184,6 +184,14 @@ first child where parent is <code>argument_list</code>, use </pre></div> </dd> +<dt id='index-comment_002dend'><span><code>comment-end</code><a href='#index-comment_002dend' class='copiable-anchor'> ¶</a></span></dt> +<dd><p>This matcher is a function that is called with 3 arguments: +<var>node</var>, <var>parent</var>, and <var>bol</var>, and returns non-<code>nil</code> if +point is before a comment ending token. Comment ending tokens are +defined by regular expression <code>treesit-comment-end</code> +(see <a href="Tree_002dsitter-major-modes.html">treesit-comment-end</a>). +</p> +</dd> <dt id='index-first_002dsibling'><span><code>first-sibling</code><a href='#index-first_002dsibling' class='copiable-anchor'> ¶</a></span></dt> <dd><p>This anchor is a function that is called with 3 arguments: <var>node</var>, <var>parent</var>, and <var>bol</var>, and returns the start of the first child @@ -219,12 +227,28 @@ charater on the previous line. </p> </dd> <dt id='index-point_002dmin'><span><code>point-min</code><a href='#index-point_002dmin' class='copiable-anchor'> ¶</a></span></dt> -<dd><p>This anchor is a function is called with 3 arguments: <var>node</var>, +<dd><p>This anchor is a function that is called with 3 arguments: <var>node</var>, <var>parent</var>, and <var>bol</var>, and returns the beginning of the buffer. This is useful as the beginning of the buffer is always at column 0. +</p> +</dd> +<dt id='index-comment_002dstart'><span><code>comment-start</code><a href='#index-comment_002dstart' class='copiable-anchor'> ¶</a></span></dt> +<dd><p>This anchor is a function that is called with 3 arguments: <var>node</var>, +<var>parent</var>, and <var>bol</var>, and returns the position right after the +comment-start token. Comment-start tokens are defined by regular +expression <code>treesit-comment-start</code> (see <a href="Tree_002dsitter-major-modes.html">treesit-comment-start</a>). This function assumes <var>parent</var> is +the comment node. +</p> +</dd> +<dt id='index-coment_002dstart_002dskip'><span><code>coment-start-skip</code><a href='#index-coment_002dstart_002dskip' class='copiable-anchor'> ¶</a></span></dt> +<dd><p>This anchor is a function that is called with 3 arguments: <var>node</var>, +<var>parent</var>, and <var>bol</var>, and returns the position after the +comment-start token and any whitespace characters following that +token. Comment-start tokens are defined by regular expression +<code>treesit-comment-start</code>. This function assumes <var>parent</var> is +the comment node. </p></dd> </dl> - </dd></dl> <span id="Indentation-utilities"></span><h3 class="heading">Indentation utilities</h3> |