Fix regex for triple quoted strings in Turtle lexers by Markus92 · Pull Request #2758 · pygments/pygments
The test cases for the turtle lexer did not include triple quoted strings (neither single nor double). The regex used to match the string contents matched every single character except escape characters, but crucially it also matched the triple quotes used to delineate the termination of such a string. The updated regex specifically excludes these characters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters