diff options
author | jimman2003 <jim41825@gmail.com> | 2021-08-31 18:57:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 08:57:03 -0700 |
commit | 10151d87380883b113aefb70681a548a50e37688 (patch) | |
tree | fa12503aa50bef6c9f77f5e55b9f39c2eae92439 | |
parent | 34ac77d6199f0fd1143018a78067c6152bf8fac7 (diff) | |
download | meson-10151d87380883b113aefb70681a548a50e37688.zip meson-10151d87380883b113aefb70681a548a50e37688.tar.gz meson-10151d87380883b113aefb70681a548a50e37688.tar.bz2 |
Make assignment a statement in Syntax.md (#9188) [skip-ci]
* Make assignment a statement in Syntax
force to change line 709 to something kind of non sensical
* Applied code review changes
-rw-r--r-- | docs/markdown/Syntax.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index be3292f..e3a70c7 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -695,7 +695,7 @@ additive_expression: multiplicative_expression | (additive_expression additive_o additive_operator: "+" | "-" argument_list: positional_arguments ["," keyword_arguments] | keyword_arguments array_literal: "[" [expression_list] "]" -assignment_expression: conditional_expression | (logical_or_expression assignment_operator assignment_expression) +assignment_statement: expression asssignment_operator expression assignment_operator: "=" | "*=" | "/=" | "%=" | "+=" | "-=" boolean_literal: "true" | "false" build_definition: (NEWLINE | statement)* @@ -706,7 +706,7 @@ DECIMAL_NUMBER: /[1-9][0-9]*/ dictionary_literal: "{" [key_value_list] "}" equality_expression: relational_expression | (equality_expression equality_operator relational_expression) equality_operator: "==" | "!=" -expression: assignment_expression +expression: conditional_expression | logical_or_expression expression_list: expression ("," expression)* expression_statement: expression function_expression: id_expression "(" [argument_list] ")" @@ -736,7 +736,7 @@ primary_expression: literal | ("(" expression ")") | id_expression relational_expression: additive_expression | (relational_expression relational_operator additive_expression) relational_operator: ">" | "<" | ">=" | "<=" | "in" | ("not" "in") selection_statement: "if" condition NEWLINE (statement)* ("elif" condition NEWLINE (statement)*)* ["else" (statement)*] "endif" -statement: (expression_statement | selection_statement | iteration_statement) NEWLINE +statement: (expression_statement | selection_statement | iteration_statement | assignment_statement) NEWLINE string_literal: ("'" STRING_SIMPLE_VALUE "'") | ("'''" STRING_MULTILINE_VALUE "'''") STRING_MULTILINE_VALUE: \.*?(''')\ STRING_SIMPLE_VALUE: \.*?(?<!\\)(\\\\)*?'\ |