aboutsummaryrefslogtreecommitdiff
path: root/drivers/nrex
Commit message (Collapse)AuthorAgeFilesLines
* RegEx re-implemented as a moduleZher Huei Lee2016-10-277-1973/+0
| | | | | | | | | | 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.
* SCsub: Add python shebang as a hint for syntax highlightingRémi Verschelde2016-10-171-0/+2
| | | | Also switch existing shebangs to "better" /usr/bin/env python.
* drivers: Refactor SCsub and drop redundant env_drivers cloneRémi Verschelde2016-10-151-5/+3
| | | | | | | | | 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.
* Add missing license headers in our source files (#5255)Rémi Verschelde2016-06-182-22/+56
| | | Also removes a couple wrong Godot headers from third-party source files.
* Fixed zero-length arrays in nrex. Fixes #4346Zher Huei Lee2016-04-181-4/+10
|
* Updated nrex to v0.2Zher Huei Lee2016-04-083-43/+113
| | | | | | * Fixed capturing groups matching to invalid results * Fixed parents of recursive quantifiers not expanding properly * Fixed LookAhead sometimes adding to result
* Forgot to correct the ERR_FAIL_COND_V.Julian Murgia - StraToN2016-02-121-1/+1
|
* Added RegEx::get_capture_start() methodJulian Murgia - StraToN2016-02-122-0/+10
|
* Update copyright to 2016 in headersGeorge Marques2016-01-012-2/+2
|
* updated the RegEx library nrex to v0.1Zher Huei Lee2015-12-045-46/+108
| | | | | | | | | | | | | | | | | | 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)
* Merge pull request #2707 from akien-mga/masterJuan Linietsky2015-11-181-2/+0
|\ | | | | Cosmetic fixes to SCons buildsystem
| * Cosmetic fixes to SCons buildsystemRémi Verschelde2015-11-011-2/+0
| | | | | | | | | | | | - Removed trailing spaces - Made sure all indentation is done using tabs (fixes #39) - Potentially fixed an identation issue for openssl check
* | Exposed RegEx expanded option to scriptsZher Huei Lee2015-11-072-4/+4
| |
* | Fixed segfault in RegEx.get_capture()Zher Huei Lee2015-11-071-1/+3
| |
* | Updated nrex to latest versionZher Huei Lee2015-11-073-172/+643
| |
* | Updated nrex for LookAhead supportZher Huei Lee2015-11-071-12/+32
|/
* Fixed incorrect failsafe return valuesZher Huei Lee2015-07-241-3/+3
|
* Made RegEx API similar to old versionZher Huei Lee2015-07-242-11/+13
|
* More nrex fixesZher Huei Lee2015-07-241-8/+16
|
* Updated nrex fixesLee Zher Huei2015-07-241-5/+5
|
* Regex library Nrex initial portLee Zher Huei2015-07-247-0/+1290