From 6f68eae9dd6843012b2eefccf15d0a7a21dd0788 Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Wed, 11 Dec 2019 14:17:13 +0200 Subject: [PATCH] docs: more precise docs for template statement syntax (#34348) PR Close #34348 --- aio/content/guide/template-syntax.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md index 7e7bd9b2d1..cf79511e3e 100644 --- a/aio/content/guide/template-syntax.md +++ b/aio/content/guide/template-syntax.md @@ -237,16 +237,15 @@ You're free to change anything, anywhere, during this turn of the event loop. Like template expressions, template *statements* use a language that looks like JavaScript. The template statement parser differs from the template expression parser and -specifically supports both basic assignment (`=`) and chaining expressions -(with ; or ,). +specifically supports both basic assignment (`=`) and chaining expressions with ;. -However, certain JavaScript syntax is not allowed: +However, certain JavaScript and template expression syntax is not allowed: * new * increment and decrement operators, `++` and `--` * operator assignment, such as `+=` and `-=` -* the bitwise operators `|` and `&` -* the [template expression operators](guide/template-syntax#expression-operators) +* the bitwise operators, such as `|` and `&` +* the [pipe operator](guide/template-syntax#pipe) ### Statement context