mirror of
https://github.com/git/git.git
synced 2024-11-05 00:37:55 +01:00
8d96e7288f
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: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
9 lines
343 B
Text
9 lines
343 B
Text
<BOLD>diff --git a/pre b/post<RESET>
|
|
<BOLD>index 2b2dfcb..65cab61 100644<RESET>
|
|
<BOLD>--- a/pre<RESET>
|
|
<BOLD>+++ b/post<RESET>
|
|
<CYAN>@@ -1,4 +1,4 @@<RESET>
|
|
\section{Something <GREEN>new<RESET>}
|
|
<RED>\emph<RESET><GREEN>\textbf<RESET>{Macro style}
|
|
{<RED>\em<RESET><GREEN>\bfseries<RESET> State toggle style}
|
|
\\[<RED>1em<RESET><GREEN>1cm<RESET>]
|