mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[wgsl-in] parse identifiers before builtin function calls
This commit is contained in:
committed by
Dzmitry Malyshau
parent
d7af2a84b7
commit
7613798aed
@@ -2108,13 +2108,6 @@ impl Parser {
|
||||
let handle = self.parse_primary_expression(lexer, ctx.reborrow())?;
|
||||
(false, handle)
|
||||
}
|
||||
Token::Word(word) => {
|
||||
let handle = match self.parse_function_call_inner(lexer, word, ctx.reborrow())? {
|
||||
Some(handle) => handle,
|
||||
None => self.parse_primary_expression(lexer, ctx.reborrow())?,
|
||||
};
|
||||
(true, handle)
|
||||
}
|
||||
_ => {
|
||||
let handle = self.parse_primary_expression(lexer, ctx.reborrow())?;
|
||||
(true, handle)
|
||||
|
||||
Reference in New Issue
Block a user