Only parse JavaScript functions beginning with function()
This commit is contained in:
parent
3e80aa9914
commit
a1d8494de1
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ fn custom(i: &str) -> IResult<&str, Function> {
|
|||
}
|
||||
|
||||
fn script(i: &str) -> IResult<&str, Function> {
|
||||
let (i, _) = alt((tag("fn::script"), tag("fn"), tag("function")))(i)?;
|
||||
let (i, _) = tag("function")(i)?;
|
||||
let (i, _) = mightbespace(i)?;
|
||||
let (i, _) = tag("(")(i)?;
|
||||
let (i, _) = mightbespace(i)?;
|
||||
|
|
Loading…
Reference in a new issue