diff options
| author | Yuan Fu | 2022-11-09 14:50:39 -0800 |
|---|---|---|
| committer | Yuan Fu | 2022-11-09 15:51:13 -0800 |
| commit | eecc2d45b94513ba95789dfe0ef58aeb8b029049 (patch) | |
| tree | 70c306db02d75c96ecff258020fc608ae0b0f6f7 /admin/notes/tree-sitter/html-manual/Language-Definitions.html | |
| parent | 663d768d44be150439a58cd858615cac3c1f572f (diff) | |
| download | emacs-eecc2d45b94513ba95789dfe0ef58aeb8b029049.tar.gz emacs-eecc2d45b94513ba95789dfe0ef58aeb8b029049.zip | |
; Update tree-sitter HTML manuals in admin/notes
* admin/notes/tree-sitter/html-manual/Language-Definitions.html
* admin/notes/tree-sitter/html-manual/Multiple-Languages.html
* admin/notes/tree-sitter/html-manual/Parser_002dbased-Font-Lock.html
* admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html
* admin/notes/tree-sitter/html-manual/Retrieving-Node.html: Update.
Diffstat (limited to 'admin/notes/tree-sitter/html-manual/Language-Definitions.html')
| -rw-r--r-- | admin/notes/tree-sitter/html-manual/Language-Definitions.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/admin/notes/tree-sitter/html-manual/Language-Definitions.html b/admin/notes/tree-sitter/html-manual/Language-Definitions.html index 6df676b1680..4fd7eb5687f 100644 --- a/admin/notes/tree-sitter/html-manual/Language-Definitions.html +++ b/admin/notes/tree-sitter/html-manual/Language-Definitions.html | |||
| @@ -236,18 +236,20 @@ assign <em>field names</em> to child nodes. For example, a | |||
| 236 | at point. The mode-line will display | 236 | at point. The mode-line will display |
| 237 | </p> | 237 | </p> |
| 238 | <div class="example"> | 238 | <div class="example"> |
| 239 | <pre class="example"><var>parent</var> <var>field</var>: (<var>child</var> (<var>grandchild</var> (…))) | 239 | <pre class="example"><var>parent</var> <var>field</var>: (<var>node</var> (<var>child</var> (…))) |
| 240 | </pre></div> | 240 | </pre></div> |
| 241 | 241 | ||
| 242 | <p><var>child</var>, <var>grand</var>, <var>grand-grandchild</var>, etc., are nodes that | 242 | <p>where <var>node</var>, <var>child</var>, etc, are nodes which begin at point. |
| 243 | begin at point. <var>parent</var> is the parent node of <var>child</var>. | 243 | <var>parent</var> is the parent of <var>node</var>. <var>node</var> is displayed in |
| 244 | bold typeface. <var>field-name</var>s are field names of <var>node</var> and | ||
| 245 | <var>child</var>, etc. | ||
| 244 | </p> | 246 | </p> |
| 245 | <p>If there is no node that starts at point, i.e., point is in the middle | 247 | <p>If no node starts at point, i.e., point is in the middle of a node, |
| 246 | of a node, then the mode-line only displays the smallest node that | 248 | then the mode line displays the earliest node that spans point, and |
| 247 | spans the position of point, and its immediate parent. | 249 | its immediate parent. |
| 248 | </p> | 250 | </p> |
| 249 | <p>This minor mode doesn’t create parsers on its own. It simply uses the | 251 | <p>This minor mode doesn’t create parsers on its own. It uses the first |
| 250 | first parser in <code>(treesit-parser-list)</code> (see <a href="Using-Parser.html">Using Tree-sitter Parser</a>). | 252 | parser in <code>(treesit-parser-list)</code> (see <a href="Using-Parser.html">Using Tree-sitter Parser</a>). |
| 251 | </p></dd></dl> | 253 | </p></dd></dl> |
| 252 | 254 | ||
| 253 | <span id="Reading-the-grammar-definition"></span><h3 class="heading">Reading the grammar definition</h3> | 255 | <span id="Reading-the-grammar-definition"></span><h3 class="heading">Reading the grammar definition</h3> |