FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vim-ruby/spec/syntax/regular_expressions_spec.rb at vim8.2 · vim-ruby/vim-ruby · GitHub
vim-ruby
/
vim-ruby
Public
Notifications
You must be signed in to change notification settings
Fork
285
Star
2k
Code
Issues
57
Pull requests
6
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
vim-ruby
/
spec
/
syntax
/
regular_expressions_spec.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (19 loc) · 595 Bytes
Breadcrumbs
vim-ruby
/
spec
/
syntax
/
regular_expressions_spec.rb
Copy path
File metadata and controls
21 lines (19 loc) · 595 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require
'spec_helper'
describe
"Syntax highlighting"
do
# See issue #171
specify
"ambiguous / at end of line is not a regexp"
do
vim
.
command
'let g:ruby_operators = 1'
assert_correct_highlighting
<<~'EOF'
,
'/'
,
'rubyArithmeticOperator'
a = calculate(90).and_some_long_expression /
and_long_expression_here
puts a
EOF
vim
.
command
'unlet g:ruby_operators'
end
# See issue #63
specify
"interpolated regexp in a host regexp"
do
assert_correct_highlighting
<<~'EOF'
,
'/$'
,
'rubyRegexpDelimiter'
/#{foo.sub(/bar/, 'baz')}/
EOF
end
end
Back
|
FazBrowse Home
|
New Git URL