Skip to content

Commit 2953535

Browse files
author
murphy
committed
add test for diff inside of diff
1 parent c0ac0c2 commit 2953535

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

diff/diff.expected.raydebug

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
comment[plain(diff --git a/etc/todo/scanners/coderay_lua_lexar.patch b/etc/todo/scanners/coderay_lua_lexar.patch)]
2+
comment[plain(index f7e3c8d..0c59559 100644)]
3+
head[head(--- )filename(a/etc/todo/scanners/coderay_lua_lexar.patch)]
4+
head[head(+++ )filename(b/etc/todo/scanners/coderay_lua_lexar.patch)]
5+
change<change(@@)plain( -117,7 +117,7 )change(@@)>plain( Index: vendor/plugins/coderay-0.7.6.227/lib/coderay/scanners/lua.rb)
6+
plain( + kind = :hex)
7+
plain( +)
8+
plain( + elsif scan(/(?:0[0-7]+\)(?![89.eEfF]\)/\))
9+
delete[delete(-)plain(+ kind = :oct)]
10+
insert[insert(+)plain(+ kind = :oct)eyecatcher<plain(al)>]
11+
plain( +)
12+
plain( + elsif scan(/(?:\\d+\)(?![.eEfF]\)/\))
13+
plain( + kind = :integer)

diff/diff.in.diff

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/etc/todo/scanners/coderay_lua_lexar.patch b/etc/todo/scanners/coderay_lua_lexar.patch
2+
index f7e3c8d..0c59559 100644
3+
--- a/etc/todo/scanners/coderay_lua_lexar.patch
4+
+++ b/etc/todo/scanners/coderay_lua_lexar.patch
5+
@@ -117,7 +117,7 @@ Index: vendor/plugins/coderay-0.7.6.227/lib/coderay/scanners/lua.rb
6+
+ kind = :hex
7+
+
8+
+ elsif scan(/(?:0[0-7]+)(?![89.eEfF])/)
9+
-+ kind = :oct
10+
++ kind = :octal
11+
+
12+
+ elsif scan(/(?:\d+)(?![.eEfF])/)
13+
+ kind = :integer

0 commit comments

Comments
 (0)