Sha256: b50ff721c5137ece4544be820d9aea5fb1bbaf025574e438fac040d88976a043
Contents?: true
Size: 509 Bytes
Versions: 19
Compression:
Stored size: 509 Bytes
Contents
module Rouge module Lexers class Conf < RegexLexer tag 'conf' aliases 'config', 'configuration' desc 'A generic lexer for configuration files' filenames '*.conf', '*.config' # short and sweet state :root do rule /#.*?\n/, 'Comment' rule /".*?"/, 'Literal.String.Double' rule /'.*?'/, 'Literal.String.Single' rule /[a-z]\w*/i, 'Name' rule /\d+/, 'Literal.Number' rule /[^\d\w#"']+/, 'Text' end end end end
Version data entries
19 entries across 19 versions & 1 rubygems