Resolve/compile regexp rules lazily
Otherwise it hurts kate startup time for e.g.,
Some results:
Before:
Loading "None" , Done in : 0 ms
Loading "CMake" , Done in : 19 ms
Loading "XML" , Done in : 0 ms
Loading "JSON" , Done in : 0 ms
Loading "Markdown" , Done in : 70 ms
After:
Loading "None" , Done in : 0 ms
Loading "CMake" , Done in : 9 ms
Loading "XML" , Done in : 0 ms
Loading "JSON" , Done in : 0 ms
Loading "Markdown" , Done in : 34 ms
Edited by Waqar Ahmed