Alsing.Text.TokenTreeNode.MakeRepeatingWS C# (CSharp) Method

MakeRepeatingWS() private static method

private static MakeRepeatingWS ( TokenTreeNode child ) : void
child TokenTreeNode
return void
        private static void MakeRepeatingWS(TokenTreeNode child) {
            if (child.Char == ' ')
            {
                // if the node contains " " (whitespace)
                // then add the node as a childnode of itself.
                // thus allowing it to parse things like
                // "end         sub" even if the pattern is "end sub" // do not localize
                child.ChildNodes[' '] = child;
            }
        }