RegionRule constructor

const RegionRule({
  1. required String begin,
  2. required String end,
  3. String? scope,
  4. String? beginScope,
  5. String? endScope,
  6. Map<int, String> beginCaptures = const {},
  7. Map<int, String> endCaptures = const {},
  8. List<Rule> rules = const [],
  9. Grammar? embed,
  10. int? embedCapture,
  11. bool endReferencesBegin = false,
})

Creates a region rule.

Implementation

const RegionRule({
  required this.begin,
  required this.end,
  this.scope,
  this.beginScope,
  this.endScope,
  this.beginCaptures = const {},
  this.endCaptures = const {},
  this.rules = const [],
  this.embed,
  this.embedCapture,
  this.endReferencesBegin = false,
});