summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Selesse <alex@selesse.com>2015-05-06 18:31:27 -0400
committerAlex Selesse <alex@selesse.com>2015-05-06 18:31:27 -0400
commitf9d1dcd1d6e3b78799d41a3058b623492495d582 (patch)
tree4901d4a4badf79a856eb89e7aaebe8612ac8f9ed /tests
parent4f2a6c2f49d221b6e815ba4df96c5440cffc30d5 (diff)
downloadpygments-f9d1dcd1d6e3b78799d41a3058b623492495d582.tar.gz
Syntax highlight Gradle files with Groovy
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/test.gradle20
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"
+ }
+}