Merge commit '5e1752ce3f' into kb_migration

This commit is contained in:
KMY 2023-07-07 07:21:46 +09:00
commit fc87e18044
8 changed files with 34 additions and 8 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) }