~sircmpwn/scm.sr.ht

64749564539b87eeae1f9febca3737579650b4cb — Drew DeVault a month ago c1605c9 0.21.1
hm
2 files changed, 2 insertions(+), 4 deletions(-)

M scmsrht/formatting.py
M scmsrht/lexers.py
M scmsrht/formatting.py => scmsrht/formatting.py +1 -1
@@ 78,7 78,7 @@ def get_highlighted_file(cache_prefix, name, content_hash,
    """Highlights a file for display in a repository's browsing UI."""
    # We incorporate SRHT_MARKDOWN_VERSION in this cache key because it can be
    # used for git.sr.ht annotations
    key = f"{cache_prefix}:highlight:{content_hash}:v{SRHT_MARKDOWN_VERSION}:v3"
    key = f"{cache_prefix}:highlight:{content_hash}:v{SRHT_MARKDOWN_VERSION}:v4"
    html = get_cache(key)
    if html:
        return Markup(html.decode())

M scmsrht/lexers.py => scmsrht/lexers.py +1 -3
@@ 27,9 27,7 @@ class HareLexer(RegexLexer):
            (r'@[a-z]+', Comment.Preproc),
            (r'\n', Text),
            (r'\s+', Text),
            (r'/(\\\n)?[*][\w\W]*?[*](\\\n)?/', Comment.Multiline),
            # Open until EOF, so no ending delimeter
            (r'/(\\\n)?[*][\w\W]*', Comment.Multiline),
            (r'//.*?$', Comment.Single),
        ],
        'statements': [
            (r'(L?)(")', bygroups(String.Affix, String), 'string'),