Skip to content
Snippets Groups Projects
Commit 1124a314 authored by Adam Welc's avatar Adam Welc
Browse files

Fixed id parsing.

parent ff582b42
Branches
No related tags found
No related merge requests found
......@@ -577,6 +577,7 @@ DD : '..' ('0'..'9')+ ;
ID
: '.'* ID_NAME
| '.' '.'+ ('0'..'9')* ID_NAME
| '.'
| '.' '.'
| '`' BACKTICK_NAME
......
......@@ -90,4 +90,12 @@ public class TestSimpleParsing extends TestBase {
assertEval("setClass('Foo', representation(x='numeric')); a <- new('Foo'); a@x");
assertEval("setClass('Foo', representation(x='numeric')); a <- new('Foo'); a@'x'");
}
@Test
public void testId() {
assertEval("{ ..7foo <- 42 }");
assertEval("{ ...7foo <- 42 }");
assertEval("{ ..77foo <- 42 }");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment