Skip to content

Draft: Introduce Match element as child of RegExpr

Jan Blackquill requested to merge work/janb/better-regexpr into master

Match allows you to set an attribute for a specific capture group of a RegExpr element, which allows writing expressions like:

  /\b(import)\b (\w*);/

  match 1 -> keyword
  match 2 -> ident

much more concisely than you could before.

Edited by Jan Blackquill

Merge request reports

Loading