Skip to content

Commit

Permalink
fix: allow whitespaces at end of expression (#121)
Browse files Browse the repository at this point in the history
fix: allow whitespaces at end of line
  • Loading branch information
LeonardHd authored Aug 5, 2024
1 parent b916bb7 commit e407b10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self) -> None:

expression_grammar = f"""
expression_start: "@" expression_evaluation
expression_evaluation: (expression_logical_bool | expression_branch | expression_call) ((("." EXPRESSION_PARAMETER_NAME) | EXPRESSION_ARRAY_INDEX)+)?
expression_evaluation: (expression_logical_bool | expression_branch | expression_call) ((("." EXPRESSION_PARAMETER_NAME) | EXPRESSION_ARRAY_INDEX)+)? EXPRESSION_WS*
?expression_call: expression_function_call
// used to translate to expression_pipeline_reference
| expression_datafactory_parameters_reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
id="linked_service_reference",
),
p("@item()", PipelineRunState(iteration_item="value"), "@item()", "value", id="item_reference"),
p("@item() ", PipelineRunState(iteration_item="value"), "@item() ", "value", id="item_reference_with_ws"),
p("@concat('a', 'b' )", PipelineRunState(), "@concat('a', 'b' )", "ab", id="function_call"),
p(
"@concat('https://example.com/jobs/', '123''', concat('&', 'abc,'))",
Expand Down

0 comments on commit e407b10

Please sign in to comment.