mirror of
https://github.com/github/codeql.git
synced 2025-12-19 02:13:17 +01:00
* The ungram file is now taken from the rust-analyzer dependencies pulled in by bazel * the grammar parsing code is not published, so it must be taken directly from rust-analyzer code. That part should be less prone to be updated than the ungram file, so it does not necessarily need to be in sync with the rust-analyzer version is used elsewhere. * both need some patches. The former is patched during build, the latter during loading in `MODULE.bazel`.
12 lines
625 B
Diff
12 lines
625 B
Diff
--- rust.ungram 2006-07-24 03:21:28.000000000 +0200
|
|
+++ rust.ungram 2024-12-18 14:13:01.191592682 +0100
|
|
@@ -414,7 +414,7 @@
|
|
// 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
|