mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	@@ -139,6 +139,8 @@ https://github.com/fsharp/fsharpbinding:
 | 
			
		||||
- source.fsharp
 | 
			
		||||
https://github.com/gingerbeardman/monkey.tmbundle:
 | 
			
		||||
- source.monkey
 | 
			
		||||
https://github.com/alkemist/gradle.tmbundle:
 | 
			
		||||
- source.groovy.gradle
 | 
			
		||||
https://github.com/guillermooo/dart-sublime-bundle/raw/master/Dart.tmLanguage:
 | 
			
		||||
- source.dart
 | 
			
		||||
https://github.com/harrism/sublimetext-cuda-cpp/raw/master/cuda-c%2B%2B.tmLanguage:
 | 
			
		||||
 
 | 
			
		||||
@@ -974,6 +974,12 @@ Grace:
 | 
			
		||||
  - .grace
 | 
			
		||||
  tm_scope: none
 | 
			
		||||
 | 
			
		||||
Gradle:
 | 
			
		||||
  type: data
 | 
			
		||||
  extensions:
 | 
			
		||||
  - .gradle
 | 
			
		||||
  tm_scope: source.groovy.gradle
 | 
			
		||||
 | 
			
		||||
Grammatical Framework:
 | 
			
		||||
  type: programming
 | 
			
		||||
  aliases:
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								samples/Gradle/build.gradle
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								samples/Gradle/build.gradle
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
apply plugin: GreetingPlugin
 | 
			
		||||
 | 
			
		||||
greeting.message = 'Hi from Gradle'
 | 
			
		||||
 | 
			
		||||
class GreetingPlugin implements Plugin<Project> {
 | 
			
		||||
    void apply(Project project) {
 | 
			
		||||
        // Add the 'greeting' extension object
 | 
			
		||||
        project.extensions.create("greeting", GreetingPluginExtension)
 | 
			
		||||
        // Add a task that uses the configuration
 | 
			
		||||
        project.task('hello') << {
 | 
			
		||||
            println project.greeting.message
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class GreetingPluginExtension {
 | 
			
		||||
    def String message = 'Hello from GreetingPlugin'
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										20
									
								
								samples/Gradle/builder.gradle
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								samples/Gradle/builder.gradle
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
apply plugin: GreetingPlugin
 | 
			
		||||
 | 
			
		||||
greeting {
 | 
			
		||||
    message = 'Hi'
 | 
			
		||||
    greeter = 'Gradle'
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class GreetingPlugin implements Plugin<Project> {
 | 
			
		||||
    void apply(Project project) {
 | 
			
		||||
        project.extensions.create("greeting", GreetingPluginExtension)
 | 
			
		||||
        project.task('hello') << {
 | 
			
		||||
            println "${project.greeting.message} from ${project.greeting.greeter}"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class GreetingPluginExtension {
 | 
			
		||||
    String message
 | 
			
		||||
    String greeter
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user