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

Regexp variable definition breaks highlighting #7

Open
jeffwright13 opened this issue Apr 30, 2019 · 0 comments
Open

Regexp variable definition breaks highlighting #7

jeffwright13 opened this issue Apr 30, 2019 · 0 comments

Comments

@jeffwright13
Copy link

jeffwright13 commented Apr 30, 2019

( Possibly same as issue #5 )

( From https://groups.google.com/forum/#!topic/robotframework-users/017w6G7HljE%5B1-25%5D )

If you include some regexp code, it breaks highlighting after the regexp is defined. The following code will show this issue.

*** Settings ***
Documentation           Verify ability to upgrade and downgrade FW
Suite Setup             yada yada yada   ${VAR_1}   ${VAR_2}
Suite Teardown          yada yada yada   ${VAR_1}   ${VAR_2}

*** Test Cases ***
Test Case 1
    [Documentation]     blah blah blah
    Change FW           ${FW_NEW}
    ${result}=          Check Firmware
    Log                 ${result}

Test Case 2
    [Documentation]     blah blah blah
    Change FW           ${FW_OLD}
    ${result}=          Check Firmware
    Log                 ${result}

*** Keywords ***
Upgrade FW
    [Documentation]     blah blah blah
    Change FW           ${FW_NEW}
    ${result}=          Check Firmware
    Log                 ${result}

Downgrade FW
    [Documentation]     blah blah blah
    Change FW           ${FW_OLD}
    ${result}=          Check Firmware
    Log                 ${result}

*** Variables ***
${regexp}               <i>main.bin<\/i>.*([0-9]+.[0-9]+.[0-9]+.[0-9]+)

*** Test Cases ***
Test Case 1
    [Documentation]     blah blah blah
    Change FW           ${FW_NEW}
    ${result}=          Check Firmware
    Log                 ${result}

Test Case 2
    [Documentation]     blah blah blah
    Change FW           ${FW_OLD}
    ${result}=          Check Firmware
    Log                 ${result}

*** Keywords ***
Upgrade FW
    [Documentation]     blah blah blah
    Change FW           ${FW_NEW}
    ${result}=          Check Firmware
    Log                 ${result}

Downgrade FW
    [Documentation]     blah blah blah
    Change FW           ${FW_OLD}
    ${result}=          Check Firmware
    Log                 ${result}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants