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,36 @@
# frozen_string_literal: true
require "thread"
module Nokogiri
module CSS
class Parser < Racc::Parser # :nodoc:
def initialize
@tokenizer = Tokenizer.new
super
end
def parse(string)
@tokenizer.scan_setup(string)
do_parse
end
def next_token
@tokenizer.next_token
end
# Get the xpath for +selector+ using +visitor+
def xpath_for(selector, visitor)
parse(selector).map do |ast|
ast.to_xpath(visitor)
end
end
# On CSS parser error, raise an exception
def on_error(error_token_id, error_value, value_stack)
after = value_stack.compact.last
raise SyntaxError, "unexpected '#{error_value}' after '#{after}'"
end
end
end
end