Exception:A highlighting rule matched 0 characters, which would cause an endless loop. Change the highlighting definition so that the rule matches at least one character. Regex: (?<=\\\s?)[^<>\s]*(?!\s\s)