renamed "isNamedCapture" to "is_named_capture"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:52:08 +02:00
parent 2dc9022aa6
commit fbcd3dd893
7 changed files with 13 additions and 6 deletions

View File

@@ -184,7 +184,7 @@ public class RegExpExtractor {
public void visit(Group nd) {
Label lbl = extractTerm(nd, parent, idx);
if (nd.isCapture()) trapwriter.addTuple("is_capture", lbl, nd.getNumber());
if (nd.isNamed()) trapwriter.addTuple("isNamedCapture", lbl, nd.getName());
if (nd.isNamed()) trapwriter.addTuple("is_named_capture", lbl, nd.getName());
visit(nd.getOperand(), lbl, 0);
}

View File

@@ -141,7 +141,7 @@ regexpterm(#20047,13,#20043,1,"(?<ws>\s+)")
locations_default(#20048,#10000,1,3,1,12)
hasLocation(#20047,#20048)
is_capture(#20047,1)
isNamedCapture(#20047,"ws")
is_named_capture(#20047,"ws")
#20049=*
regexpterm(#20049,9,#20047,0,"\s+")
#20050=@"loc,{#10000},1,9,1,11"