Sha256: e41562379250ec7e0879299aac852c4c9e0b8b43e5fc38595a17360501927ae3
Contents?: true
Size: 1.23 KB
Versions: 44
Compression:
Stored size: 1.23 KB
Contents
# frozen_string_literal: true require 'set' module Rouge module Lexers load_lexer 'yaml.rb' class Digdag < YAML title 'digdag' desc 'A simple, open source, multi-cloud workflow engine (https://www.digdag.io/)' tag 'digdag' filenames '*.dig' mimetypes 'application/x-digdag' # http://docs.digdag.io/operators.html # as of digdag v0.9.10 KEYWORD_PATTERN = Regexp.union(%w( call require loop for_each if fail echo td td_run td_ddl td_load td_for_each td_wait td_wait_table td_partial_delete td_table_export pg mail http s3_wait redshift redshift_load redshift_unload emr gcs_wait bq bq_ddl bq_extract bq_load sh py rb embulk ).map { |name| "#{name}>"} + %w( _do _parallel )) prepend :block_nodes do rule %r/(#{KEYWORD_PATTERN})(:)(?=\s|$)/ do |m| groups Keyword::Reserved, Punctuation::Indicator set_indent m[0], :implicit => true end end end end end
Version data entries
44 entries across 44 versions & 2 rubygems
Version | Path |
---|---|
rouge-3.7.0 | lib/rouge/lexers/digdag.rb |
rouge-3.6.0 | lib/rouge/lexers/digdag.rb |
rouge-3.5.1 | lib/rouge/lexers/digdag.rb |
rouge-3.5.0 | lib/rouge/lexers/digdag.rb |