Expand description
Everything about parsing text into text annotated with scopes.
The most important struct here is SyntaxSet, check out the docs for that.
Re-exports§
- pub use self::syntax_definition::SyntaxDefinition;
Modules§
- syntax_definition 
- Data structures for representing syntax definitions
Structs§
- MatchPower 
- Wrapper to get around the fact Rust f64doesn’t implementOrdand there is no non-NaN float type
- ParseState 
- Keeps the current parser state (the internal syntax interpreter stack) between lines of parsing.
- Regex
- An abstraction for regex patterns.
- Region
- A region contains text positions for capture groups in a match result.
- Scope
- A hierarchy of atoms with semi-standardized names used to accord semantic information to a specific piece of text.
- ScopeRepository 
- The structure used to keep track of the mapping between scope atom numbers and their string names
- ScopeStack 
- A stack/sequence of scopes for representing hierarchies for a given token of text
- SyntaxReference 
- A linked version of a SyntaxDefinitionthat is only useful as part of theSyntaxSetthat contains it. See docs forSyntaxSetBuilder::buildfor more info.
- SyntaxSet 
- A syntax set holds multiple syntaxes that have been linked together.
- SyntaxSetBuilder 
- A syntax set builder is used for loading syntax definitions from the file
system or by adding SyntaxDefinitionobjects.
Enums§
- BasicScope Stack Op 
- Used for ScopeStack::apply_with_hook
- ClearAmount 
- ParseScope Error 
- Not all strings are valid scopes
- ParseSyntax Error 
- ParsingError 
- Errors that can occur while parsing.
- ScopeError 
- Scope related errors
- ScopeStack Op 
- A change to a scope stack
Constants§
- ATOM_LEN_ BITS 
- Multiplier on the power of 2 for MatchPower. This is only useful if you compute your own
MatchPowerscores
Statics§
- SCOPE_REPO Deprecated 
- The global scope repo, exposed in case you want to minimize locking and unlocking.