From 7ac9cabbff2132ffc3f3b9452d56f9556e522ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9opold=20Mebazaa?= Date: Wed, 15 May 2024 16:36:28 +0200 Subject: [PATCH] Update CONTRIBUTING.md to reflect the new parser (#11434) ## Summary CONTRIBUTING.md says that `cargo dev print-ast` uses the old RuffPython parser, even though, as far as I can tell, it uses the shiny new parser. This PR fixes this. ## Test Plan CI jobs should do the trick -- I didn't modify any code. --- CONTRIBUTING.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c4def89956..ebb265912f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -637,11 +637,11 @@ Otherwise, follow the instructions from the linux section. `cargo dev` is a shortcut for `cargo run --package ruff_dev --bin ruff_dev`. You can run some useful utils with it: -- `cargo dev print-ast `: Print the AST of a python file using the - [RustPython parser](https://github.com/astral-sh/ruff/tree/main/crates/ruff_python_parser) that is - mainly used in Ruff. For `if True: pass # comment`, you can see the syntax tree, the byte offsets - for start and stop of each node and also how the `:` token, the comment and whitespace are not - represented anymore: +- `cargo dev print-ast `: Print the AST of a python file using Ruff's + [Python parser](https://github.com/astral-sh/ruff/tree/main/crates/ruff_python_parser). + For `if True: pass # comment`, you can see the syntax tree, the byte offsets for start and + stop of each node and also how the `:` token, the comment and whitespace are not represented + anymore: ```text [