Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit f60e204

Browse files
authored
Fix range of keyword identifier (#14)
1 parent 08ebbe4 commit f60e204

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parser/src/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub(crate) fn parse_args(func_args: Vec<FunctionArgument>) -> Result<ArgumentLis
103103
}
104104

105105
keywords.push(ast::Keyword {
106-
arg: name.map(|name| ast::Identifier::new(name, TextRange::new(start, end))),
106+
arg: name,
107107
value,
108108
range: TextRange::new(start, end),
109109
});

parser/src/snapshots/rustpython_parser__parser__tests__parse_kwargs.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)