mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 20:31:59 +00:00
Fix AsmOption rule in rust.ungram
This commit is contained in:
parent
d7fa33e2d0
commit
cb2829eaa7
2 changed files with 1 additions and 3 deletions
|
|
@ -414,7 +414,7 @@ AsmClobberAbi = 'clobber_abi' '(' ('@string' (',' '@string')* ','?) ')'
|
|||
// option := "pure" / "nomem" / "readonly" / "preserves_flags" / "noreturn" / "nostack" / "att_syntax" / "raw"
|
||||
AsmOption = 'pure' | 'nomem' | 'readonly' | 'preserves_flags' | 'noreturn' | 'nostack' | 'att_syntax' | 'raw' | 'may_unwind'
|
||||
// options := "options(" option *("," option) [","] ")"
|
||||
AsmOptions = 'options' '(' AsmOption *(',' AsmOption) ','? ')'
|
||||
AsmOptions = 'options' '(' (AsmOption (',' AsmOption)*) ','? ')'
|
||||
AsmLabel = 'label' BlockExpr
|
||||
AsmSym = 'sym' Path
|
||||
AsmConst = 'const' Expr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue