Skip to content

Commit

Permalink
Merge pull request #1866 from derekschrock/empty-regex-expression
Browse files Browse the repository at this point in the history
Robot: remove empty expression .{0} in parsers/robots.c to fix unit test tmain and units on FreeBSD
  • Loading branch information
masatake authored Sep 10, 2018
2 parents 2232a75 + 0e10675 commit 1c39fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/robot.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static void initialize (const langType language)

addLanguageCallbackRegex (
language,
"(^([A-Za-z0-9]+|\\$\\{[_A-Za-z0-9][' _A-Za-z0-9]*(:([^}]|\\\\|.{0})+)*\\})([${}' _]([-_$A-Za-z0-9]+|\\{[_A-Za-z0-9][' _A-Za-z0-9]*(:([^}]|\\\\|.{0})+)*\\})+)*)",
"(^([A-Za-z0-9]+|\\$\\{[_A-Za-z0-9][' _A-Za-z0-9]*(:([^}]|\\\\)+)*\\})([${}' _]([-_$A-Za-z0-9]+|\\{[_A-Za-z0-9][' _A-Za-z0-9]*(:([^}]|\\\\)+)*\\})+)*)",
"{exclusive}", tagKeywordsAndTestCases, NULL, NULL);

addLanguageCallbackRegex (language, "^[$@]\\{([_A-Za-z0-9][' _A-Za-z0-9]+)\\} [ ]*.+",
Expand Down

0 comments on commit 1c39fd3

Please sign in to comment.