Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Search for grammar file from CARGO_MANIFEST_DIR (#702)
closes #325. The new logic looks for the [grammar = "$path"] path in CARGO_MANIFEST_DIR/ before using the fallback of CARGO_MANIFEST_DIR/src. This allows projects that don't have a src folder to use a grammar file, while staying backward compatible.
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 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
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