1
0
mirror of https://github.com/amix/vimrc synced 2025-08-04 04:05:00 +08:00

Use sources_non_forked folder for pathogen path, with sources_non_forked_fallback folder as fallback.

This commit is contained in:
Wu Tingfeng
2022-11-21 22:56:20 +08:00
parent dddd2e4152
commit d9555d618c
1756 changed files with 4 additions and 250 deletions

View File

@ -1,26 +0,0 @@
require 'spec_helper'
describe "Syntax highlighting" do
specify "heredocs starting after parenthesised method definitions" do
# See issue #356
assert_correct_highlighting <<~'EOF', 'HTML', 'rubyHeredocDelimiter'
def youtube_video(token, width = 360, height = 215)
<<-HTML if token
<iframe width="#{width}" height="#{height}" src="http://www.youtube.com/embed/#{token}" frameborder="0" allowfullscreen></iframe>
HTML
end
EOF
end
specify "heredocs do not start after string literals" do
assert_correct_highlighting <<~'EOF', 'FOO', 'rubyConstant'
"abc" <<FOO
EOF
assert_correct_highlighting <<~'EOF', 'FOO', 'rubyConstant'
'abc' <<FOO
EOF
assert_correct_highlighting <<~'EOF', 'FOO', 'rubyConstant'
`abc` <<FOO
EOF
end
end

View File

@ -1,9 +0,0 @@
require 'spec_helper'
describe "Syntax highlighting" do
specify "invalid interpolated predefined global variables are literal text" do
assert_correct_highlighting <<~'EOF', '#\$', 'rubyString'
"abc(#$)def"
EOF
end
end

View File

@ -1,9 +0,0 @@
require 'spec_helper'
describe "Syntax highlighting" do
specify "percent strings with a modulo-assignment operator look-alike delimiter" do
assert_correct_highlighting <<~'EOF', '%=', 'rubyPercentStringDelimiter'
foo = %= bar =
EOF
end
end