1. A computer-implemented method, comprising: selecting a first grammar rule in a computer programming language grammar that is used for determining a syntax validity of a computer programming code statement in a text editor, wherein the first grammar rule includes a first symbol that is syntactically correct for the computer programming code statement; creating a second grammar rule and linking the second grammar rule within the grammar chain adjacent to the first grammar rule for the computer programming language grammar, the second grammar rule substantially identical to the first grammar rule but replaces the first symbol with an a second symbol, wherein the second symbol is syntactically incorrect for the computer programming code statement and the first and second symbols are associated with keys on a keyboard; and associating an action with the computer programming language grammar, the action comprising executable code that, when executed, causes the second, syntactically incorrect symbol in the computer programming code statement in the text editor to be replaced with the first syntactically correct symbol; and after or during editing of programming language statements within a document in the text editor, invoking a parser to check the syntax of the programming language statements based on the modified computer programming language grammar, wherein the parser, upon encountering a condition that satisfies the second grammar rule, invokes the action to replace the second symbol with the first symbol.