From b1598f95429c64fb683957ba48428797f41e2967 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 4 Sep 2015 14:01:53 +0300 Subject: [PATCH] Work around a parsing error with regular C strings --- rc/dlang.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/dlang.kak b/rc/dlang.kak index 6ea1d190..53ab4752 100644 --- a/rc/dlang.kak +++ b/rc/dlang.kak @@ -28,7 +28,7 @@ addhl -group /dlang/token fill meta addhl -group /dlang/disabled fill rgb:777777 addhl -group /dlang/comment fill comment -addhl -group /dlang/string regex "\\\(x[0-9a-fA-F]{2}|[0-7]{1,3}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})\>" 0:value +addhl -group /dlang/string regex %{\\(x[0-9a-fA-F]{2}|[0-7]{1,3}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})\>} 0:value addhl -group /dlang/code regex %{\<(true|false|null|__FILE__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__|__DATE__|__EOF__|__TIME__|__TIMESTAMP__|__VENDOR__|__VERSION__)\>|'((\\.)?|[^'\\])'} 0:value addhl -group /dlang/code regex "-?([0-9_]*\.(?!0[xXbB]))?\<([0-9_]+|0[xX][0-9a-fA-F_]*\.?[0-9a-fA-F_]+|0[bb][01_]+)([ep]-?[0-9_]+)?[fFlLuUi]*\>" 0:value addhl -group /dlang/code regex "\<(this)\>\s*[^(]" 1:value