akvelon / dart-highlighting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate to pure Dart RegExp

alexeyinkin opened this issue · comments

JsRegExp class was created to simplify initial migration to Highlight.js 11.7. It mimics stateful RegExp from JavaScript.

The same logic can likely be done with pure Dart RegExp using .matchAsPrefix(String str, [int start = 0])
which is cleaner and may work faster.