Skip to content
  • Thomas Rast's avatar
    8d96e728
    t4034: bulk verify builtin word regex sanity · 8d96e728
    Thomas Rast authored
    
    
    The builtin word regexes should be tested with some simple examples
    against simple issues.  Do this in bulk.
    
    Mainly due to a lack of language knowledge and inspiration, most of
    the test cases (cpp, csharp, java, objc, pascal, php, python, ruby)
    are directly based off a C operator precedence table to verify that
    all operators are split correctly.  This means that they are probably
    incomplete or inaccurate except for 'cpp' itself.
    
    Still, they are good enough to already have uncovered a typo in the
    python and ruby patterns.
    
    'fortran' is based on my anecdotal knowledge of the DO10I parsing
    rules, and thus probably useless.  The rest (bibtex, html, tex) are an
    ad-hoc test of what I consider important splits in those languages.
    
    Signed-off-by: default avatarThomas Rast <trast@student.ethz.ch>
    Signed-off-by: default avatarJonathan Nieder <jrnieder@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    8d96e728
    t4034: bulk verify builtin word regex sanity
    Thomas Rast authored
    
    
    The builtin word regexes should be tested with some simple examples
    against simple issues.  Do this in bulk.
    
    Mainly due to a lack of language knowledge and inspiration, most of
    the test cases (cpp, csharp, java, objc, pascal, php, python, ruby)
    are directly based off a C operator precedence table to verify that
    all operators are split correctly.  This means that they are probably
    incomplete or inaccurate except for 'cpp' itself.
    
    Still, they are good enough to already have uncovered a typo in the
    python and ruby patterns.
    
    'fortran' is based on my anecdotal knowledge of the DO10I parsing
    rules, and thus probably useless.  The rest (bibtex, html, tex) are an
    ad-hoc test of what I consider important splits in those languages.
    
    Signed-off-by: default avatarThomas Rast <trast@student.ethz.ch>
    Signed-off-by: default avatarJonathan Nieder <jrnieder@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
Loading