From e24b9697049db473210dbe34eb9b2bc66bc83091 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 5 Mar 2024 22:19:08 +1100 Subject: [PATCH] Use lookbehinds in ninja highlighters This speeds up regex execution and seems more correct for those regions end --- rc/filetype/ninja.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/filetype/ninja.kak b/rc/filetype/ninja.kak index b4b5ea6e..757b7ad2 100644 --- a/rc/filetype/ninja.kak +++ b/rc/filetype/ninja.kak @@ -42,13 +42,13 @@ add-highlighter shared/ninja regions add-highlighter shared/ninja/comment region '#' '\n' fill comment # `subninja`, `include`, `rule`, `pool` and `default` declarations -add-highlighter shared/ninja/sirpd region '^(subninja|include|rule|pool|default)\b' '[^$]\n' group +add-highlighter shared/ninja/sirpd region '^(subninja|include|rule|pool|default)\b' '(?