class SublimeDSL::TextMate::Grammar::RuleBuilder::MatchState

Public Instance Methods

both(captures) click to toggle source
# File lib/sublime_dsl/textmate/grammar/dsl_reader.rb, line 301
def both(captures)
  raise Error, "'both' is invalid with 'match'"
end
content_scope=(scope) click to toggle source
# File lib/sublime_dsl/textmate/grammar/dsl_reader.rb, line 305
def content_scope=(scope)
  raise Error, "'content_scope' is invalid with 'match'"
end
from(re, captures) click to toggle source
# File lib/sublime_dsl/textmate/grammar/dsl_reader.rb, line 293
def from(re, captures)
  raise Error, "'from' is invalid with 'match'"
end
match(re, captures) click to toggle source
# File lib/sublime_dsl/textmate/grammar/dsl_reader.rb, line 288
def match(re, captures)
  @match = Match.new(Tools::RegexpWannabe.new(re.source))
  @match.captures.merge! captures
end
patterns() click to toggle source
# File lib/sublime_dsl/textmate/grammar/dsl_reader.rb, line 313
def patterns
  raise Error, "'patterns' is invalid with 'match'"
end
rule() click to toggle source
# File lib/sublime_dsl/textmate/grammar/dsl_reader.rb, line 317
def rule
  r = MatchRule.new
  init r
  r.match = @match
  r
end
to(re, captures) click to toggle source
# File lib/sublime_dsl/textmate/grammar/dsl_reader.rb, line 297
def to(re, captures)
  raise Error, "'to' is invalid with 'match'"
end
to_last=(value) click to toggle source
# File lib/sublime_dsl/textmate/grammar/dsl_reader.rb, line 309
def to_last=(value)
  raise Error, "'to_last' is invalid with 'match'"
end