Added iskeyword command to the syntax definition
authorolus2000 <alsabak@gmail.com>
Mon, 22 Aug 2022 14:26:19 +0000 (16:26 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 22 Aug 2022 14:31:38 +0000 (07:31 -0700)
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.

misc/vim/syntax/factor.vim

index 938e85d980f52bfafc2778d219df8a92240b03ff..da6121d2a681e70b0c13d07e596c58f1c0ce9e63 100644 (file)
@@ -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.