From 85a42f48bef9d88184ae19c6e61527489ee273c4 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Sat, 5 Oct 2024 00:56:02 -0400 Subject: [PATCH] chore(cli): minor correction in comments (cherry picked from commit c611e15a310d9af2ed18172ef1faafaf18506176) --- cli/loader/src/lib.rs | 4 ++-- cli/src/tests/detect_language.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/loader/src/lib.rs b/cli/loader/src/lib.rs index 1eb094c3..8e20b9a3 100644 --- a/cli/loader/src/lib.rs +++ b/cli/loader/src/lib.rs @@ -1118,8 +1118,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); // Determine if a previous language configuration in this package.json file diff --git a/cli/src/tests/detect_language.rs b/cli/src/tests/detect_language.rs index 5bad36d3..aed4ae18 100644 --- a/cli/src/tests/detect_language.rs +++ b/cli/src/tests/detect_language.rs @@ -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");