Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded variables not highlighted in keyword calls #586

Closed
weltings opened this issue Feb 24, 2022 · 0 comments
Closed

Embedded variables not highlighted in keyword calls #586

weltings opened this issue Feb 24, 2022 · 0 comments
Labels
bug Something isn't working robotframework-ls

Comments

@weltings
Copy link
Contributor

Describe the bug
Syntax highlighting does not recognize embedded variables in BDD style testing

To Reproduce

*** Test Cases ***

Example test case
    Given A UM-MIG compliant B1 declaration with all mandatory elements
    And Licence is specified with type C068 reference NL0074CDIU0571970 amount 1 and currency EUR
    When The declaration is submitted to EU customs
    Then Message DVV02: Validate Customer Licence should have been received
    And The message should have value JA in element resultaatcode

*** Keywords ***

Licence is specified with type ${type} reference ${reference} amount ${amount} and currency ${currency}
    ${index}=    Get sequence numeric for new SupportingDocument element in section GovernmentAgencyGoodsItem
    In the section GovernmentAgencyGoodsItem an element with tag SupportingDocument has been added
    In the section SupportingDocument[${index}] the element ID has been added with value ${reference}
    In the section SupportingDocument[${index}] the element TypeCode has been added with value ${type}
    In the section SupportingDocument[${index}] the element SequenceNumeric has been added with value ${index}
    In the section SupportingDocument[${index}] an element with tag WriteOff exists
    In the section SupportingDocument[${index}]/WriteOff the element AmountAmount has been added with value ${amount}
    In the section SupportingDocument[${index}]/WriteOff the element AmountAmount has attribute currencyID with value ${currency}

Expected behavior
In keywords section I would expect variables to be highlighted as such

Screenshots
image

Versions:

  • OS: Windows 10
  • Robot Framework Version: [4]
  • Robot Framework Language Server Version: [0.41.0]
  • Client Version: [e.g.: VSCode 1.64.2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working robotframework-ls
Projects
None yet
Development

No branches or pull requests

2 participants