Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2023-07-05 12:01:26 +02:00
24 changed files with 174 additions and 135 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
class ScopeParser < Parslet::Parser
rule(:term) { match('[a-z]').repeat(1).as(:term) }
rule(:term) { match('[a-z_]').repeat(1).as(:term) }
rule(:colon) { str(':') }
rule(:access) { (str('write') | str('read')).as(:access) }
rule(:namespace) { str('admin').as(:namespace) }