diff options
| author | Alex Selesse <alex@selesse.com> | 2015-05-06 18:31:27 -0400 |
|---|---|---|
| committer | Alex Selesse <alex@selesse.com> | 2015-05-06 18:31:27 -0400 |
| commit | f9d1dcd1d6e3b78799d41a3058b623492495d582 (patch) | |
| tree | 4901d4a4badf79a856eb89e7aaebe8612ac8f9ed /tests | |
| parent | 4f2a6c2f49d221b6e815ba4df96c5440cffc30d5 (diff) | |
| download | pygments-f9d1dcd1d6e3b78799d41a3058b623492495d582.tar.gz | |
Syntax highlight Gradle files with Groovy
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/examplefiles/test.gradle | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/examplefiles/test.gradle b/tests/examplefiles/test.gradle new file mode 100644 index 00000000..0bc834c1 --- /dev/null +++ b/tests/examplefiles/test.gradle @@ -0,0 +1,20 @@ +apply plugin: 'java' + +repositories { + mavenCentral() +} + +dependencies { + testCompile 'junit:junit:4.12' +} + +task sayHello << { + def x = SomeClass.worldString + println "Hello ${x}" +} + +private class SomeClass { + public static String getWorldString() { + return "world" + } +} |
