From b5321f3d1b04cfe7083cc98d51a22d4750c4a1ef Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Mon, 24 Jun 2019 10:12:29 +0300 Subject: [PATCH] rc filetype d: Highlight line tokens properly --- rc/filetype/d.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/d.kak b/rc/filetype/d.kak index 16c6d8d1..b968fab0 100644 --- a/rc/filetype/d.kak +++ b/rc/filetype/d.kak @@ -54,7 +54,7 @@ add-highlighter shared/d/code/ regex %{'((\\.)?|[^'\\])'} 0:value add-highlighter shared/d/code/ regex "-?([0-9_]*\.(?!0[xXbB]))?\b([0-9_]+|0[xX][0-9a-fA-F_]*\.?[0-9a-fA-F_]+|0[bb][01_]+)([ep]-?[0-9_]+)?[fFlLuUi]*\b" 0:value add-highlighter shared/d/code/ regex "\b(this)\b\s*[^(]" 1:value add-highlighter shared/d/code/ regex "((?:~|\b)this)\b\s*\(" 1:function -add-highlighter shared/d/code/ regex '#\s*line\b.*' 0:meta +add-highlighter shared/d/code/ regex '(#line)\h+(\d+)(\h+"[^"\n]*")?' 1:meta 2:value 3:string evaluate-commands %sh{ # Grammar