1
0
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:
Kurtis Moxley
2022-08-11 11:57:20 +08:00
parent bbbedb5311
commit 1f4af09835
53 changed files with 2745 additions and 845 deletions

View File

@ -0,0 +1,11 @@
#ifdef __cplusplus
extern "C" {
#endif
typoo
(typoo)
int main() {
printf("hello, world");
return 0;
}

View File

@ -0,0 +1,3 @@
div {
color: red
}

View 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
1 a,b,c,d
2 1,2,3,4
3 1,,3,4
4 1,,,4
5 1 , , , 4
6 1,2,3,4,5
7 1, 2, 3, 4
8 1 ,2 ,3, 4, 5
9 1 , 2 , 3 , 4
10 1 , 2 , 3 , 4
11 1, 3
12 1,2,3
13 1,3,4,5

View File

@ -0,0 +1,4 @@
typoo
(typoo)
client := &http.Client{}

View File

@ -0,0 +1,5 @@
{- this is a comment block -}
xs = [1, 2, 3]
ps = [(1, 2), (3, 1 / 4)]

View 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>

View File

@ -0,0 +1,8 @@
<html>
<div>
<img />
(1 + (2 + 3))
</div>
</html>
<!-- vim: set ft=html.txt : -->

View File

@ -0,0 +1,5 @@
typoo
(typoo)
console.log({w: 200, h: 100, pos: [{x: 1, y: 2}, {x: 3, y: 4}]})

View 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...
]]

View 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>

View File

@ -0,0 +1,10 @@
typoo
(typoo)
sub test {
correct indent;
}
if ($test) {
incorrect indent;
}

View File

@ -0,0 +1,15 @@
{{{}}}
((()))
[[[]]]
[[[[]]]]
def sample_function(a, b)
((()))
[[[]]]
end
class SampleClass
def sample_method(a, b)
[[[]]]
end
end

View 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
}

View File

@ -0,0 +1,5 @@
(((())))
[[[[]]]]
{{{{}}}}
# vim: set ft=this-is-a--very-SPECIAL-filetype :

View File

@ -0,0 +1,3 @@
div {
color: red
}

View File

@ -0,0 +1,11 @@
\documentclass[]{article}
{{{{}}}}
((((((()))))))
[[[[[[]]]]]]
\begin{document}
((((()))))
${{{{}}}}$
{{{{}}}}
[[[[[[]]]]]]
\end{document}

View File

@ -0,0 +1,6 @@
<html>
<div>
<img />
</div>
</html>