mirror of
https://github.com/amix/vimrc
synced 2025-09-16 09:05:00 +08:00
Change Rainbow-parenthese plugin into Rainbow plugin.
This commit is contained in:
11
sources_non_forked/rainbow/tests/test.c
Normal file
11
sources_non_forked/rainbow/tests/test.c
Normal file
@ -0,0 +1,11 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typoo
|
||||
(typoo)
|
||||
|
||||
int main() {
|
||||
printf("hello, world");
|
||||
return 0;
|
||||
}
|
3
sources_non_forked/rainbow/tests/test.css
Normal file
3
sources_non_forked/rainbow/tests/test.css
Normal file
@ -0,0 +1,3 @@
|
||||
div {
|
||||
color: red
|
||||
}
|
14
sources_non_forked/rainbow/tests/test.csv
Normal file
14
sources_non_forked/rainbow/tests/test.csv
Normal file
@ -0,0 +1,14 @@
|
||||
a,b,c,d
|
||||
1,2,3,4
|
||||
1,,3,4
|
||||
1,,,4
|
||||
1 , , , 4
|
||||
1,2,3,4,5
|
||||
1, 2, 3, 4
|
||||
1 ,2 ,3, 4, 5
|
||||
1 , 2 , 3 , 4
|
||||
1 , 2 , 3 , 4
|
||||
1, 3
|
||||
1,2,3
|
||||
1,3,4,5
|
||||
|
|
4
sources_non_forked/rainbow/tests/test.go
Normal file
4
sources_non_forked/rainbow/tests/test.go
Normal file
@ -0,0 +1,4 @@
|
||||
typoo
|
||||
(typoo)
|
||||
|
||||
client := &http.Client{}
|
5
sources_non_forked/rainbow/tests/test.hs
Normal file
5
sources_non_forked/rainbow/tests/test.hs
Normal file
@ -0,0 +1,5 @@
|
||||
{- this is a comment block -}
|
||||
|
||||
xs = [1, 2, 3]
|
||||
ps = [(1, 2), (3, 1 / 4)]
|
||||
|
22
sources_non_forked/rainbow/tests/test.html
Normal file
22
sources_non_forked/rainbow/tests/test.html
Normal file
@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
h1 {color:red;}
|
||||
p {color:blue;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<img />
|
||||
(1 + (2 + 3))
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var foo = true;
|
||||
if (foo) {
|
||||
alert("hey");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
8
sources_non_forked/rainbow/tests/test.html.txt
Normal file
8
sources_non_forked/rainbow/tests/test.html.txt
Normal file
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<div>
|
||||
<img />
|
||||
(1 + (2 + 3))
|
||||
</div>
|
||||
</html>
|
||||
|
||||
<!-- vim: set ft=html.txt : -->
|
5
sources_non_forked/rainbow/tests/test.js
Normal file
5
sources_non_forked/rainbow/tests/test.js
Normal file
@ -0,0 +1,5 @@
|
||||
typoo
|
||||
(typoo)
|
||||
|
||||
console.log({w: 200, h: 100, pos: [{x: 1, y: 2}, {x: 3, y: 4}]})
|
||||
|
12
sources_non_forked/rainbow/tests/test.lua
Normal file
12
sources_non_forked/rainbow/tests/test.lua
Normal file
@ -0,0 +1,12 @@
|
||||
(function(args)
|
||||
lst = { a=function(arg) print("hello") end,
|
||||
b=(1+2)*3/4,
|
||||
[3+5]={ ["hello"]=("hi") },
|
||||
}
|
||||
lst[
|
||||
(function() return 0 end)()] = 1
|
||||
end)("blah")
|
||||
|
||||
[[
|
||||
Special lua string...
|
||||
]]
|
13
sources_non_forked/rainbow/tests/test.php
Normal file
13
sources_non_forked/rainbow/tests/test.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
if ($_FILES["file"]["error"] > 0)
|
||||
{
|
||||
echo "Error: " . $_FILES["file"]["error"] . "<br />";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
hello (world)
|
||||
</html>
|
10
sources_non_forked/rainbow/tests/test.pl
Normal file
10
sources_non_forked/rainbow/tests/test.pl
Normal file
@ -0,0 +1,10 @@
|
||||
typoo
|
||||
(typoo)
|
||||
|
||||
sub test {
|
||||
correct indent;
|
||||
}
|
||||
|
||||
if ($test) {
|
||||
incorrect indent;
|
||||
}
|
15
sources_non_forked/rainbow/tests/test.rb
Normal file
15
sources_non_forked/rainbow/tests/test.rb
Normal file
@ -0,0 +1,15 @@
|
||||
{{{}}}
|
||||
((()))
|
||||
[[[]]]
|
||||
[[[[]]]]
|
||||
|
||||
def sample_function(a, b)
|
||||
((()))
|
||||
[[[]]]
|
||||
end
|
||||
|
||||
class SampleClass
|
||||
def sample_method(a, b)
|
||||
[[[]]]
|
||||
end
|
||||
end
|
52
sources_non_forked/rainbow/tests/test.sh
Normal file
52
sources_non_forked/rainbow/tests/test.sh
Normal file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
typoo
|
||||
(typoo)
|
||||
|
||||
if stuff
|
||||
then
|
||||
somestuff
|
||||
test = (())
|
||||
(())
|
||||
a = (1 + (2 + 3))
|
||||
if
|
||||
then
|
||||
elif
|
||||
then
|
||||
else
|
||||
fi
|
||||
else
|
||||
otherstuff
|
||||
fi
|
||||
|
||||
if stuff
|
||||
then
|
||||
somestuff
|
||||
else
|
||||
otherstuff
|
||||
fi
|
||||
|
||||
function f() {
|
||||
if
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# check if command exists
|
||||
command_exists () {
|
||||
type "${1}" > /dev/null 2>&1;
|
||||
a = (1 + (2 + 3))
|
||||
}
|
||||
|
||||
# Fetch the update
|
||||
fetch() {
|
||||
if type wget > /dev/null 2>&1 ; then
|
||||
$debug && echo "fetching update via wget"
|
||||
wget --no-check-certificate -O "${2}" "${1}" >/dev/null 2>&1
|
||||
elif type curl > /dev/null 2>&1 ; then
|
||||
$debug && echo "fetching update via curl"
|
||||
curl --insecure --remote-name -o "${2}" "${1}" >/dev/null 2>&1
|
||||
else
|
||||
echo 'Warning: Neither wget nor curl is available. online updates unavailable' >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
5
sources_non_forked/rainbow/tests/test.special-ft
Normal file
5
sources_non_forked/rainbow/tests/test.special-ft
Normal file
@ -0,0 +1,5 @@
|
||||
(((())))
|
||||
[[[[]]]]
|
||||
{{{{}}}}
|
||||
|
||||
# vim: set ft=this-is-a--very-SPECIAL-filetype :
|
3
sources_non_forked/rainbow/tests/test.styl
Normal file
3
sources_non_forked/rainbow/tests/test.styl
Normal file
@ -0,0 +1,3 @@
|
||||
div {
|
||||
color: red
|
||||
}
|
11
sources_non_forked/rainbow/tests/test.tex
Normal file
11
sources_non_forked/rainbow/tests/test.tex
Normal file
@ -0,0 +1,11 @@
|
||||
\documentclass[]{article}
|
||||
|
||||
{{{{}}}}
|
||||
((((((()))))))
|
||||
[[[[[[]]]]]]
|
||||
\begin{document}
|
||||
((((()))))
|
||||
${{{{}}}}$
|
||||
{{{{}}}}
|
||||
[[[[[[]]]]]]
|
||||
\end{document}
|
6
sources_non_forked/rainbow/tests/test.xml
Normal file
6
sources_non_forked/rainbow/tests/test.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<div>
|
||||
<img />
|
||||
</div>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user