Sha256: f15f1be6b5cea843daa994eb0f4a45544d047672c791752427841c45dee3e137
Contents?: true
Size: 476 Bytes
Versions: 14
Compression:
Stored size: 476 Bytes
Contents
# -*- coding: utf-8 -*- # module Rouge module Lexers load_lexer 'json.rb' class JSONDOC < JSON desc "JavaScript Object Notation with extenstions for documentation" tag 'json-doc' prepend :root do rule /([$\w]+)(\s*)(:)/ do groups Name::Attribute, Text, Punctuation end rule %r(/[*].*?[*]/), Comment rule %r(//.*?$), Comment::Single rule /(\.\.\.)/, Comment::Single end end end end
Version data entries
14 entries across 14 versions & 5 rubygems