Sha256: 9088e55feeef8f02c941364c215b82845fd211c4af628df019b0a464c79a9616
Contents?: true
Size: 506 Bytes
Versions: 4
Compression:
Stored size: 506 Bytes
Contents
# -*- coding: utf-8 -*- # # frozen_string_literal: true 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
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
rouge-3.4.1 | lib/rouge/lexers/json_doc.rb |
rouge-3.4.0 | lib/rouge/lexers/json_doc.rb |
rouge-alda-3.3.0 | lib/rouge/lexers/json_doc.rb |
rouge-3.3.0 | lib/rouge/lexers/json_doc.rb |