-
Notifications
You must be signed in to change notification settings - Fork 632
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
Robot capture keyword started from varref #1571
Robot capture keyword started from varref #1571
Conversation
If {exclusive} flag is specified and an input line matches a regex pattern, the input line is consumed always; lregex skips the rest of patterns for the input line. This is the original behavior of lregex engine. This commit extends the behavior if a pattern is specified with matchCallbackPattern function. Even if a regex pattern (with {exclusive}) matches an input line, and a callback false returns false, the input line is never consumed. The callback function must return true for consuming the input line. Signed-off-by: Masatake YAMATO <[email protected]>
Oputput -> Output |
Input: *** Keywords *** ${embedded arg} Starting Single No Operation Output: ${embedded arg} Starting Single input.robot /^${embedded arg} Starting Single$/;" k Close universal-ctags#1570. Signed-off-by: Masatake YAMATO <[email protected]>
cd8b62d
to
0e230a1
Compare
@k-takata, thank you. Updated. |
1019889
to
50b0604
Compare
50b0604
to
70a6c34
Compare
Regex engine on MacOSX doesn't accept the updated regex pattern. I will inspect the pattern. |
make chop LANGUAGES=Robot is passed. |
I'm afraid that this parser enters infinite loop. I would like to implement "kick" target before merging this. |
I named "slap" instead of "kick". |
Running unit tests tmain and units via 'make check' the empty expression .{0} from the matching group in parsers/robot.c was causing FreeBSD libc regcomp to produce an error: empty (sub)expression. tmain would fail for some checks while units would fail for robots checks. Removing the emptry expression .{0} "match anything exactly zero times" fixes this issue and all expected tests pass for both tmain and units. Testing the same change, removing the expression .{0} from the matching group, on centos7 does not appear to have any regessions. This reverts the following commit universal-ctags@81a4593 That was created for the following issue: universal-ctags#1571 (comment) It's possible there's some regression for macOS however macOS on Travis doesn't seem to have any issues.
Input:
Output:
Close #1570.
Close #1572.