summaryrefslogtreecommitdiff
path: root/drivers/nrex
AgeCommit message (Collapse)Author
2016-10-27RegEx re-implemented as a moduleZher Huei Lee
Re-wrote nrex as a module using godot-specific parts and new features: * Added string substitutions. * Named groups are now supported. * Removed use of mutable variables in RegEx. RegExMatch is returned instead.
2016-10-17SCsub: Add python shebang as a hint for syntax highlightingRémi Verschelde
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-15drivers: Refactor SCsub and drop redundant env_drivers cloneRémi Verschelde
The reordering of the SConscript includes allows to ensure that stuff like the builtin zlib headers will be available for libpng. Also moved glew back into global env, otherwise windows seems not to find it... Kind of shooting in the dark with this multi-env setup.
2016-06-18Add missing license headers in our source files (#5255)Rémi Verschelde
Also removes a couple wrong Godot headers from third-party source files.
2016-04-18Fixed zero-length arrays in nrex. Fixes #4346Zher Huei Lee
2016-04-08Updated nrex to v0.2Zher Huei Lee
* Fixed capturing groups matching to invalid results * Fixed parents of recursive quantifiers not expanding properly * Fixed LookAhead sometimes adding to result
2016-02-12Forgot to correct the ERR_FAIL_COND_V.Julian Murgia - StraToN
2016-02-12Added RegEx::get_capture_start() methodJulian Murgia - StraToN
2016-01-01Update copyright to 2016 in headersGeorge Marques
2015-12-04updated the RegEx library nrex to v0.1Zher Huei Lee
After implementing unit testing to nrex I caught and fixed some errors so it should behave more like Python's RegEx In addition, I've added version numbering so it should be able to tell if the library needs updating. Here are a list of changes: - Fixed zero count quantifiers failing. - Fixed infinite recursion if quantifying zero length token. - Fixed `$` (as a string pattern on its own) not matching. - Fixed look behind rewinding beyond the start of the string. - Added support for alternative back reference format `\g{1}` similar to Python. This allows digits to be used immediately after back references. - Number of capture groups are still limited to 9 by default but can now be manually set, with option for no limit at all. (Python has no limit) - Curly bracket quantifiers `{0}` no longer interpreted as a literal string if previous token is not quantifiable. (Python behaviour)
2015-11-18Merge pull request #2707 from akien-mga/masterJuan Linietsky
Cosmetic fixes to SCons buildsystem
2015-11-07Exposed RegEx expanded option to scriptsZher Huei Lee
2015-11-07Fixed segfault in RegEx.get_capture()Zher Huei Lee
2015-11-07Updated nrex to latest versionZher Huei Lee
2015-11-07Updated nrex for LookAhead supportZher Huei Lee
2015-11-01Cosmetic fixes to SCons buildsystemRémi Verschelde
- Removed trailing spaces - Made sure all indentation is done using tabs (fixes #39) - Potentially fixed an identation issue for openssl check
2015-07-24Fixed incorrect failsafe return valuesZher Huei Lee
2015-07-24Made RegEx API similar to old versionZher Huei Lee
2015-07-24More nrex fixesZher Huei Lee
2015-07-24Updated nrex fixesLee Zher Huei
2015-07-24Regex library Nrex initial portLee Zher Huei