npp-robot icon indicating copy to clipboard operation
npp-robot copied to clipboard

Regexp variable definition breaks highlighting

Open jeffwright13 opened this issue 6 years ago • 0 comments

( 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}

jeffwright13 avatar Apr 30 '19 16:04 jeffwright13