Skip to content

Commit

Permalink
Fixes #150
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-bond committed May 14, 2019
1 parent a0b6b36 commit 099bcc0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export class Parser {
case "flax":
case "fsharp":
case "go":
case "groovy":
case "haxe":
case "java":
case "jsonc":
Expand Down
14 changes: 14 additions & 0 deletions src/test/samples/groovy.groovy
Original file line number Diff line number Diff line change
@@ -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
*/

0 comments on commit 099bcc0

Please sign in to comment.