-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build_assets.rs: Add code to track dependents of each syntax
This information is useful when you want to build several SyntaxSets, but without having to duplicate SyntaxDefinitions. For example: "Rust" has no dependencies. But "Markdown" depends on "Rust". With the data structures this code adds, we know that "Rust" is a dependent syntax for "Markdown", and can construct a SyntaxSet that takes that into account. Note that code has a temporary environment flag to ignore any information about dependents when constructing SyntaxSets. Code that makes use of the new data structure will be added later.
- Loading branch information
Showing
1 changed file
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters