From fe66b8a3903c98005ab63aff693200a9bc4acf3c Mon Sep 17 00:00:00 2001 From: SolitudeSF Date: Wed, 24 Mar 2021 17:11:26 +0200 Subject: [PATCH] rc nim: update suffix spec --- rc/filetype/nim.kak | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc/filetype/nim.kak b/rc/filetype/nim.kak index f398fa23..d7b7a5dc 100644 --- a/rc/filetype/nim.kak +++ b/rc/filetype/nim.kak @@ -51,8 +51,10 @@ evaluate-commands %sh{ # Grammar opchars='[=+-/<>@$~&%|!?^.:\\*]' opnocol='[=+-/<>@$~&%|!?^.\\*]' - suffix="('?([iIuU](8|16|32|64)|[fF](32|64)?|[dDuU]|[fF]))?" - floatsuffix="('?([fF](32|64)?|[dD]|[fF]))?" + letter='A-Za-z\u000080-\u10FFFF' + customsuffix="'[${letter}](_?[${letter}0-9])*" + suffix="(${customsuffix}|[iIuU](8|16|32|64)|[fF](32|64)?|[dDuU])?" + floatsuffix="(${customsuffix}|[fF](32|64)?|[dD])?" hexdigit='[0-9a-fA-F]' octdigit='[0-7]' bindigit='[01]'