Sha256: a3669670ace2964fbf25ab92fe43d2c0a258a6184408ba6c77ff71be8ef49998
Contents?: true
Size: 706 Bytes
Versions: 6
Compression:
Stored size: 706 Bytes
Contents
# -*- coding: utf-8 -*- # # frozen_string_literal: true module Rouge module Lexers class Codeowners < RegexLexer title 'CODEOWNERS' desc 'Code Owners syntax (https://docs.gitlab.com/ee/user/project/codeowners/reference.html)' tag 'codeowners' filenames 'CODEOWNERS' state :root do rule %r/[ \t\r\n]+/, Text::Whitespace rule %r/^\s*#.*$/, Comment::Single rule %r( (\^?\[(?!\d+\])[^\]]+\]) (\[\d+\])? )x do groups Name::Namespace, Literal::Number end rule %r/\S*@\S+/, Name::Function rule %r/[\p{Word}\.\/\-\*]+/, Name rule %r/.*\\[\#\s]/, Name end end end end
Version data entries
6 entries across 6 versions & 1 rubygems