diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-03-06 18:24:49 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-03-06 18:31:31 -0500 |
| commit | eff3530dfab5ecb4e480e0516ed57a8f564543f5 (patch) | |
| tree | 6d407f8f334e1910e0ae6ea16190aa9c3e5de016 /doc | |
| parent | 44ae891bd79cc8b2f9040a39c176317ebf4a4ef8 (diff) | |
| download | zig-eff3530dfab5ecb4e480e0516ed57a8f564543f5.tar.gz zig-eff3530dfab5ecb4e480e0516ed57a8f564543f5.zip | |
var is no longer a pseudo-type, it is syntax
closes #779
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 38cbd63b2a..1183e25c2f 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -5733,19 +5733,19 @@ UseDecl = "use" Expression ";" ExternDecl = "extern" option(String) (FnProto | VariableDeclaration) ";" -FnProto = option("nakedcc" | "stdcallcc" | "extern" | ("async" option("(" Expression ")"))) "fn" option(Symbol) ParamDeclList option("align" "(" Expression ")") option("section" "(" Expression ")") option("!") TypeExpr +FnProto = option("nakedcc" | "stdcallcc" | "extern" | ("async" option("(" Expression ")"))) "fn" option(Symbol) ParamDeclList option("align" "(" Expression ")") option("section" "(" Expression ")") option("!") (TypeExpr | "var") FnDef = option("inline" | "export") FnProto Block ParamDeclList = "(" list(ParamDecl, ",") ")" -ParamDecl = option("noalias" | "comptime") option(Symbol ":") (TypeExpr | "...") +ParamDecl = option("noalias" | "comptime") option(Symbol ":") (TypeExpr | "var" | "...") Block = option(Symbol ":") "{" many(Statement) "}" Statement = LocalVarDecl ";" | Defer(Block) | Defer(Expression) ";" | BlockExpression(Block) | Expression ";" | ";" -TypeExpr = ErrorSetExpr | "var" +TypeExpr = ErrorSetExpr ErrorSetExpr = (PrefixOpExpression "!" PrefixOpExpression) | PrefixOpExpression |
