Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
@@ -0,0 +1,54 @@
# -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Brainfuck < RegexLexer
tag 'brainfuck'
filenames '*.b', '*.bf'
mimetypes 'text/x-brainfuck'
title "Brainfuck"
aliases "bf"
desc "The Brainfuck programming language"
start { push :bol }
state :bol do
rule %r/\s+/m, Text
rule %r/\[/, Comment::Multiline, :comment_multi
rule(//) { pop! }
end
state :root do
rule %r/\]/, Error
rule %r/\[/, Punctuation, :loop
mixin :comment_single
mixin :commands
end
state :comment_multi do
rule %r/\[/, Comment::Multiline, :comment_multi
rule %r/\]/, Comment::Multiline, :pop!
rule %r/[^\[\]]+?/m, Comment::Multiline
end
state :comment_single do
rule %r/[^><+\-.,\[\]]+/, Comment::Single
end
state :loop do
rule %r/\[/, Punctuation, :loop
rule %r/\]/, Punctuation, :pop!
mixin :comment_single
mixin :commands
end
state :commands do
rule %r/[><]+/, Name::Builtin
rule %r/[+\-.,]+/, Name::Function
end
end
end
end