From: olus2000 Date: Mon, 22 Aug 2022 14:26:19 +0000 (+0200) Subject: Added iskeyword command to the syntax definition X-Git-Tag: 0.99~1116 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=0bc380612c5df92ee013902a442fcf440115d4c0 Added iskeyword command to the syntax definition Factor words can include almost any byte. In ftplugin/factor.vim ranges 33-126 and 128-255 are defined as valid characters for Factor words so I copied those ranges. --- diff --git a/misc/vim/syntax/factor.vim b/misc/vim/syntax/factor.vim index 938e85d980..da6121d2a6 100644 --- a/misc/vim/syntax/factor.vim +++ b/misc/vim/syntax/factor.vim @@ -61,6 +61,9 @@ syn match factorWord /\v<\S+>/ contains=@factorWord transparent display syn cluster factorCluster contains=factorWord,factorComment,factorMultilineComment,@factorClusterValue,factorDeclaration,factorCall,factorCallNextMethod,@factorWordOps,factorAlien,factorSlot,factorTuple,factorStruct syn cluster factorClusterValue contains=factorBreakpoint,factorBoolean,factorFrySpecifier,factorLocalsSpecifier,factorChar,factorString,@factorNumber,factorBackslash,factorMBackslash,factorLiteral,@factorEffect,@factorQuotation,@factorArray,factorRegexp +" Almost any byte in Factor can be a part of a word +syn iskeyword 33-126,128-255 + " A crash course on Factor's lexer: " " The "lexer" vocabulary parses lines (arrays of strings) into tokens.