aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2020-05-14 11:19:14 +0300
committerVexu <git@vexu.eu>2020-05-14 11:19:14 +0300
commitac319b27348f60e37f3f1b478fee00202280715f (patch)
treed249f3b1ab6d65ad0dadd177ce9a9dab2112431c /doc
parentc3b76d091337ba60d2ccb3632b525e5a42d1f2c5 (diff)
downloadzig-ac319b27348f60e37f3f1b478fee00202280715f.tar.gz
zig-ac319b27348f60e37f3f1b478fee00202280715f.zip
remove useless nosuspend parsing
nosuspend cannot be used in a type expression and all other use casesare covered by PrimaryExpr
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.html.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index 5bf91ca70f..0733540478 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -10096,6 +10096,7 @@ ContainerField &lt;- IDENTIFIER (COLON TypeExpr)? (EQUAL Expr)?
Statement
&lt;- KEYWORD_comptime? VarDecl
/ KEYWORD_comptime BlockExprStatement
+ / KEYWORD_nosuspend BlockExprStatement
/ KEYWORD_suspend (SEMICOLON / BlockExprStatement)
/ KEYWORD_defer BlockExprStatement
/ KEYWORD_errdefer BlockExprStatement
@@ -10152,6 +10153,7 @@ PrimaryExpr
/ IfExpr
/ KEYWORD_break BreakLabel? Expr?
/ KEYWORD_comptime Expr
+ / KEYWORD_nosuspend Expr
/ KEYWORD_continue BreakLabel?
/ KEYWORD_resume Expr
/ KEYWORD_return Expr?
@@ -10514,6 +10516,7 @@ KEYWORD_for &lt;- 'for' end_of_word
KEYWORD_if &lt;- 'if' end_of_word
KEYWORD_inline &lt;- 'inline' end_of_word
KEYWORD_noalias &lt;- 'noalias' end_of_word
+KEYWORD_nosuspend &lt;- 'nosuspend' end_of_word
KEYWORD_null &lt;- 'null' end_of_word
KEYWORD_or &lt;- 'or' end_of_word
KEYWORD_orelse &lt;- 'orelse' end_of_word