rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/lexers/gradle.rb

39 lines
1.1 KiB
Ruby
Raw Normal View History

2019-10-21 08:18:17 +00:00
# -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
load_lexer 'groovy.rb'
class Gradle < Groovy
title "Gradle"
desc "A powerful build system for the JVM"
tag 'gradle'
filenames '*.gradle'
mimetypes 'text/x-gradle'
def self.keywords
@keywords ||= super + Set.new(%w(
allprojects artifacts buildscript configuration dependencies
repositories sourceSets subprojects publishing
))
end
def self.types
@types ||= super + Set.new(%w(
Project Task Gradle Settings Script JavaToolChain SourceSet
SourceSetOutput IncrementalTaskInputs Configuration
ResolutionStrategy ArtifactResolutionQuery ComponentSelection
ComponentSelectionRules ConventionProperty ExtensionAware
ExtraPropertiesExtension PublishingExtension IvyPublication
IvyArtifact IvyArtifactSet IvyModuleDescriptorSpec
MavenPublication MavenArtifact MavenArtifactSet MavenPom
PluginDependenciesSpec PluginDependencySpec ResourceHandler
TextResourceFactory
))
end
end
end
end