wingyplus / language-robot-framework

Robot Framework grammar for Atom Text Editor.
https://atom.io/packages/language-robot-framework
26 stars 17 forks source link

Gherkin-style prefix also detected halfway in the keyword #12

Closed itavero closed 8 years ago

itavero commented 8 years ago

In the example below Button will be highlighted as well as And. As far as I can tell it only makes sense to highlight these words when the are the start of a keyword.

*** Test Cases ***
Some Example Case
    Press And Hold The Button
wingyplus commented 8 years ago

From spec http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#behavior-driven-style , It not make any sense to highlight Button.

itavero commented 8 years ago

I know it does not make any sense, but this is what is currently happening. So I reckon this bug should be fixed.

wingyplus commented 8 years ago

If it's bug please tell me what theme do you use and please capture your screen to confirm this bug.

Thanks

itavero commented 8 years ago

I updated to v1.0.0 of this package this morning and I no longer see this behavior. Can it be that it was fixed already?

wingyplus commented 8 years ago

I added test to cover this scenario for prevent it happen again.

Thanks for your contribution.