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

Commit d37820a

Browse files
MichaReiserzanieb
authored andcommitted
Fix range of keyword identifier (#14)
1 parent dc51b89 commit d37820a

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)