-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a node containment option to semgrex that works on CoreAnnotation…
…s which are Maps. Currently the syntax is @, subject to change eg, morphofeatures@foo=bar In this expression, bar can be a regex, but foo and morphofeatures cannot. It might be worth adding regex capabilities for both of those, Also, !@ would be a useful addition. This checks at Semgrex compile time (not Java compile time) that the annotation used for key/value is actually a Map Has a test that the error checking and a simple search both work.
- Loading branch information
1 parent
dcee001
commit 2fce986
Showing
5 changed files
with
219 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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.