From c611e15a310d9af2ed18172ef1faafaf18506176 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 --- 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 1b8083c0..164fd670 100644 --- a/cli/loader/src/lib.rs +++ b/cli/loader/src/lib.rs @@ -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"); 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");