From 099bcc04eafa620bc03c3eb9115712ab5b0d5a6c Mon Sep 17 00:00:00 2001 From: aaron-bond Date: Tue, 14 May 2019 15:14:41 +0100 Subject: [PATCH] Fixes #150 --- src/parser.ts | 1 + src/test/samples/groovy.groovy | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/test/samples/groovy.groovy diff --git a/src/parser.ts b/src/parser.ts index 8286cb8..d432044 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -263,6 +263,7 @@ export class Parser { case "flax": case "fsharp": case "go": + case "groovy": case "haxe": case "java": case "jsonc": diff --git a/src/test/samples/groovy.groovy b/src/test/samples/groovy.groovy new file mode 100644 index 0000000..296563f --- /dev/null +++ b/src/test/samples/groovy.groovy @@ -0,0 +1,14 @@ +class Example { + static void main(String[] args) { + // ! hello world + // * another comment + // ? and another + One can see the use of a semi-colon after each statement + def x = 5; + println('Hello World'); + } +} + +/* + ! block comments are the same +*/ \ No newline at end of file