Add support for character ranges in regex patterns
This commit is contained in:
parent
60e2d00b4d
commit
0d3a941848
11 changed files with 174 additions and 156 deletions
|
|
@ -18,6 +18,12 @@ describe("arithmetic", []() {
|
|||
AssertThat(string(TSDocumentToString(document)), Equals(
|
||||
"(expression (term (factor (variable))))"));
|
||||
});
|
||||
|
||||
it("parses numbers", [&]() {
|
||||
TSDocumentSetText(document, "5");
|
||||
AssertThat(string(TSDocumentToString(document)), Equals(
|
||||
"(expression (term (factor (number))))"));
|
||||
});
|
||||
|
||||
it("parses products of variables", [&]() {
|
||||
TSDocumentSetText(document, "x+y");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue