mondo: support line comments
This commit is contained in:
parent
30fd4c5dec
commit
e3a6444f41
2 changed files with 12 additions and 1 deletions
|
|
@ -67,6 +67,14 @@ describe('mondo s-expressions parser', () => {
|
|||
{ type: 'number', value: '22.3' },
|
||||
],
|
||||
}));
|
||||
it('should parse comments', () =>
|
||||
expect(p('a // hello')).toEqual({
|
||||
type: 'list',
|
||||
children: [
|
||||
{ type: 'plain', value: 'a' },
|
||||
{ type: 'comment', value: '// hello' },
|
||||
],
|
||||
}));
|
||||
});
|
||||
|
||||
let desguar = (a) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue