You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/emacs-tree-sitter.org
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -293,6 +293,14 @@ Certain node types assign unique *field names* to specific child nodes. Within a
293
293
arguments: (arguments) @function.args)
294
294
#+end_src
295
295
296
+
A symbol prefixed with the character ~!~ denotes a *negated field*, which requires that the pattern matches only nodes that lack the specified field.
297
+
#+begin_src scheme
298
+
;; Match non-generic struct definitions.
299
+
(struct_item
300
+
name: (type_identifier) @struct_name
301
+
!type_parameters)
302
+
#+end_src
303
+
296
304
*** Groups and Predicates
297
305
# Grouping Sibling Nodes ("group forms").
298
306
A *group* form is a list form whose first element is a node form. It is used to denote a sequence of sibling nodes, and to group predicate forms with node forms.
0 commit comments