-
Notifications
You must be signed in to change notification settings - Fork 483
Add support for unbounded look-behind expressions #1266
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
Open
Multimodcrafter
wants to merge
68
commits into
rust-lang:master
from
epfl-systemf:captureless-lookbehinds
+1,555
−167
Open
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
9f1a5e1
Add lookaround expressions to HIR
Multimodcrafter e7c2584
Change how flatten works on hir::Lookaround
shilangyu 96548c1
Add hir::Lookaround to the visitor
shilangyu 23764ce
Fix hir::Lookaround printing and add test
shilangyu fc48116
Remove useless ref
shilangyu 258d36c
Add missing drop case for hir::Lookaround
shilangyu 07be9ab
Rename Lookaround to LookAround
shilangyu d89e90a
Fix properties of LookArounds
shilangyu 31b09a5
Add missing literal lookaround test
shilangyu 59ccaa1
Fix literal test and useless property computation
shilangyu 2c2c6bd
Adjust parsing errors for lookarounds
shilangyu dd0ce23
Add LookAround to Ast
shilangyu ffdb942
Disable failing tests
shilangyu 3d31ff7
Fix UnsupportedCaptureInLookBehind typo
shilangyu 76e11e6
Add unclosed lookaround error
shilangyu 830cabe
Rename lookaround to look-around
shilangyu c353b35
Support parsing of look-behinds
shilangyu 71c1a90
Reject lookbehinds with capture groups
shilangyu 8352a9e
Add tests for parsing lookbehinds
shilangyu 90828a2
Add AST -> HIR translation for lookarounds
shilangyu d35e65a
Fix typo
shilangyu ae33591
Allow for non-capturing groups in lookbehinds
shilangyu c1f7bb1
Fix missing LookAround in regex-cli
shilangyu cd070f8
Detect capture groups in lookarounds for cheaper
shilangyu bdc9bbd
Remove accidental import
shilangyu edba197
Add new instructions to NFA
Multimodcrafter f97aa92
Implement lookaround compilation
Multimodcrafter ccdab18
Restore compilation behaviour for regexes without lookarounds
Multimodcrafter 519d13d
Address review comments
Multimodcrafter cccfc23
Implement look-around index generation
Multimodcrafter 9c33cca
Change tracking of look-around state to index
Multimodcrafter e94394c
Fix cli tool and AST->HIR translation
Multimodcrafter 273767d
Fix lookaround union order
Multimodcrafter 170dbb4
Address review comments
Multimodcrafter c9814a3
Fix look-around indexing
Multimodcrafter d98cfbf
Add error messages and fix pre-filter
Multimodcrafter 5284761
Add unit tests for look-behind assertions
Multimodcrafter 85c555c
Bump version numbers
Multimodcrafter cff77ec
Adjust some docs
shilangyu 4a87b58
Add lookbehind with capture group test
shilangyu 21166e5
Change how test suite filters tests
shilangyu 6192349
Change engine fallbacks
shilangyu 07668e6
Rename lookaround_index
shilangyu 9375900
Fix literals tests
shilangyu b12c09c
Fix anchors in lookarounds
shilangyu 9c7c558
Fix broken doc link
Multimodcrafter 0917a1d
Remove unneeded if condition
shilangyu 88df919
Explain use of empty look-set
Multimodcrafter 1e13645
Add regression tests
Multimodcrafter c2cebbb
Change compilation to disconnected components
Multimodcrafter 5cc52ea
Implement look-behind state processing
Multimodcrafter 1ec885a
Show look-behind starts in nfa debug print
Multimodcrafter df0ebca
Fix doc-link
Multimodcrafter 7b9e339
Fix memory usage calculation
Multimodcrafter 985a662
Fix spelling
Multimodcrafter be4a978
Implement matchall performance improvement
Multimodcrafter 80f2607
Implement matchall speedup for meta-engine
Multimodcrafter 869cf0c
Replace catchall with explicit ignore
Multimodcrafter 0ce8356
Rephrase doc and fix lb start state order
Multimodcrafter aea8fa3
Disable lookaround scanning when none present
Multimodcrafter e35c8d9
Fast forward look-around threads upon prefiltering
shilangyu c43efb0
Add small test for prefiltered regex with lookbehind
shilangyu 3abfcfd
Change literal extraction for look-arounds
shilangyu 1f5c5c1
Update wrong doc
shilangyu cbc452e
Fix literal extraction tests
shilangyu 9673c1a
Reverse look_behind_starts
shilangyu d5e7dc3
Fix NFA memory usage and typo
Multimodcrafter 3d13971
Fix lookaround index initialization
Multimodcrafter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Fix lookaround index initialization
- Loading branch information
commit 3d13971b44c08ad4dafd653a9adfaaddc24f3921
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.