From c187bc3d4e113bf59723562ef8325cda00513fa5 Mon Sep 17 00:00:00 2001 From: helino Date: Tue, 17 May 2011 21:35:43 +0200 Subject: [PATCH] added support for multiline comments --- src/se/helino/mjc/parser/MJParser.jj | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/se/helino/mjc/parser/MJParser.jj b/src/se/helino/mjc/parser/MJParser.jj index 914ebf0..880996b 100644 --- a/src/se/helino/mjc/parser/MJParser.jj +++ b/src/se/helino/mjc/parser/MJParser.jj @@ -13,6 +13,19 @@ SKIP: | "\n" | "\t" | <"//" (~["\n","\r"])* ("\n"|"\r"|"\r\n")> +| "/*" : WithinComment +} + + +SKIP: +{ + "*/" : DEFAULT +} + + +MORE: +{ + <~[]> } TOKEN: