From f55a70bca40ea4bff87b9d2e4552269762b9cfbf Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Thu, 6 Dec 2018 11:55:52 +0100 Subject: [PATCH] + NimLexer keyword corrections --- src/StyleLexers/styleLexNim.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/StyleLexers/styleLexNim.c b/src/StyleLexers/styleLexNim.c index b81290c5e..bae9fc133 100644 --- a/src/StyleLexers/styleLexNim.c +++ b/src/StyleLexers/styleLexNim.c @@ -10,15 +10,18 @@ static __int64 LexFunction(LexFunctionType type, int value) // ---------------------------------------------------------------------------- +// https://github.com/nim-lang/Nim/blob/devel/doc/keywords.txt + KEYWORDLIST KeyWords_Nim = { - "addr and as asm atomic bind block break case cast concept const continue converter " + "addr and as asm bind block break case cast concept const continue converter " "defer discard distinct div do elif else end enum except export finally for from func " - "generic if import in include interface is isnot iterator let macro method mixin mod " + "if import in include interface is isnot iterator let macro method mixin mod " "nil not notin object of or out proc ptr raise ref return shl shr static " - "template try tuple type using var when while with without xor yield", + "template try tuple type using var when while xor yield", "", "", "", "", "", "", "", "" }; + EDITLEXER lexNim = { SCLEX_NIM, IDS_LEX_NIM_SRC, L"Nim Source Code", L"nim; nimrod", L"", &LexFunction, // static