You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
C++11 introduced raw string literals. Which are the preferd method of writing regular expressions in C++.
Raw string literals look like: const char* str = R"(this is a raw string literal)";. Raw string literals start with R"( and end with )". Given the current tools provided by VSCucumberAutoComplete it is impossible to properly match raw string literal steps:
// steps/step_implementation_file.cppGIVEN(R"(there is a step that is a raw string literal)")
{}
To Reproduce
Steps to reproduce the behavior:
create a file in steps/stepimpl.cpp
add contents shown above
create a feature file containing a scenario with the above step
observe the match to be: (there is a step that is a raw string literal)
Expected behavior
VSCucumberAutoComplete treats the above GIVEN step as capturing the whole string, which is incorrect.
Example:
Describe the bug
C++11 introduced raw string literals. Which are the preferd method of writing regular expressions in C++.
Raw string literals look like:
const char* str = R"(this is a raw string literal)";
. Raw string literals start withR"(
and end with)"
. Given the current tools provided by VSCucumberAutoComplete it is impossible to properly match raw string literal steps:To Reproduce
Steps to reproduce the behavior:
(there is a step that is a raw string literal)
Expected behavior
VSCucumberAutoComplete treats the above GIVEN step as capturing the whole string, which is incorrect.
Example:
Screenshots
See Expected Behaviour
Cucumberautocomplete part of VSCode settings:
Step definition:
See above
Gherkin step line
See above
The text was updated successfully, but these errors were encountered: