YAML: inefficient regex to highlight maps
When opening large YAML files with lots of URLs, the pattern for maps (?<=^|\s)((?:[^:]|:(?=\S))+)(?::\s+|:$)
causes gedit/gtksourceview to SEGFAULT (recursion in PCRE, called by _gtk_source_regex_match
). Unfortunately, I haven't been able to come up with a more efficient pattern myself.
Tested with gtksourceview 3.18.2 as well as manually with PCRE 8.43.