Expand description
Syntax tree definitions with change metadata.
Structs§
- Matched
Pos - Syntax
Info - Fields that are common to both
Syntax::ListandSyntax::Atom.
Enums§
- Atom
Kind - Match
Kind - A matched token (an atom, a delimiter, or a comment word).
- String
Kind - Different types of strings. We want to diff these the same way, but highlight them differently.
- Syntax
- Token
Kind - Unlike atoms, tokens can be delimiters like
{.
Functions§
- change_
positions - Walk
nodesand return a vec of all the changed positions. - comment_
positions - init_
all_ info - Initialise all the fields in
SyntaxInfo. - init_
next_ prev - zip_
pad_ shorter - zip_
repeat_ shorter - Zip
lhswithrhs, but repeat the last item from the shorter slice.