Skip to content

Commit

Permalink
enable string patterns for annotations, issue #49
Browse files Browse the repository at this point in the history
  • Loading branch information
saharmehrpour committed Oct 31, 2023
1 parent 99f4a4c commit a4bb1da
Show file tree
Hide file tree
Showing 5 changed files with 813 additions and 783 deletions.
1 change: 1 addition & 0 deletions rulePadGrammar.g4
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ annotations

annotationCondition
: combinatorialWords SPACE
| words SPACE
;


Expand Down
5 changes: 5 additions & 0 deletions src/core/generateXPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ class GenerateXPath {
if (!isConstraintCondition) this.XPathQ += "[" + messageID + tempText + "]";
this.XPathC += "[" + messageID + tempText + "]";
}
else if (nodeChildren[i].getChild(j).constructor.name === "WordsContext") {
tempText = this.wordsContextTraversal(nodeChildren[i].getChild(j));
if (!isConstraintCondition) this.XPathQ += "/src:name[" + tempText + "]";
this.XPathC += "/src:name[" + tempText + "]";
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/generated-parser/rulePadGrammar.interp

Large diffs are not rendered by default.

Loading

0 comments on commit a4bb1da

Please sign in to comment.