chore(cli): minor correction in comments
This commit is contained in:
parent
d039ae4b7b
commit
c611e15a31
2 changed files with 3 additions and 3 deletions
|
|
@ -1136,8 +1136,8 @@ impl Loader {
|
|||
let language_count = self.languages_by_id.len();
|
||||
for grammar in config.grammars {
|
||||
// Determine the path to the parser directory. This can be specified in
|
||||
// the package.json, but defaults to the directory containing the
|
||||
// package.json.
|
||||
// the tree-sitter.json, but defaults to the directory containing the
|
||||
// tree-sitter.json.
|
||||
let language_path = parser_path.join(grammar.path);
|
||||
|
||||
let grammar_path = language_path.join("src").join("grammar.json");
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ fn detect_language_by_first_line_regex() {
|
|||
.find_language_configurations_at_path(strace_dir.path(), false)
|
||||
.unwrap();
|
||||
|
||||
// this is just to validate that we can read the package.json correctly
|
||||
// this is just to validate that we can read the tree-sitter.json correctly
|
||||
assert_eq!(config[0].scope.as_ref().unwrap(), "source.strace");
|
||||
|
||||
let file_name = strace_dir.path().join("strace.log");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue