chore(cli): minor correction in comments
(cherry picked from commit c611e15a31)
This commit is contained in:
parent
aac741dfd1
commit
85a42f48be
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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