mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Parse builtin#asm expressions
This commit is contained in:
parent
50882fbfa2
commit
86658c66b4
21 changed files with 865 additions and 31 deletions
|
@ -131,6 +131,14 @@ impl<'t> Parser<'t> {
|
|||
true
|
||||
}
|
||||
|
||||
pub(crate) fn eat_contextual_kw(&mut self, kind: SyntaxKind) -> bool {
|
||||
if !self.at_contextual_kw(kind) {
|
||||
return false;
|
||||
}
|
||||
self.bump_remap(kind);
|
||||
true
|
||||
}
|
||||
|
||||
fn at_composite2(&self, n: usize, k1: SyntaxKind, k2: SyntaxKind) -> bool {
|
||||
self.inp.kind(self.pos + n) == k1
|
||||
&& self.inp.kind(self.pos + n + 1) == k2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue