You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This spec file is for manually checking the syntax highlighting. It is not meant to be executed.
2
2
describeSyntaxHighlightingdo
3
-
4
3
it'works for a simple example (single quoted)'do
5
4
# ...
6
5
end
7
-
6
+
8
7
it"works for a simple example (double quoted)"do
9
8
# ...
10
9
end
11
-
10
+
12
11
context'in a context (single quoted)'do
13
12
context"that is nested (double quoted)"do
14
13
it"still works correctly"do
15
14
# ...
16
15
end
17
16
end
18
17
end
19
-
18
+
20
19
# See https://github.com/rspec/rspec-tmbundle/issues/45
21
20
context'with multiline
22
21
descriptions (single quoted)'do
23
-
24
-
context"or double
22
+
23
+
context"or double
25
24
quoted"do
26
-
27
-
it'still works for
25
+
26
+
it'still works for
28
27
single quoted strings'do
29
28
# ...
30
29
end
31
-
32
-
it"still works for
30
+
31
+
it"still works for
33
32
double quoted strings"do
34
33
# ...
35
34
end
36
-
35
+
37
36
it'even works
38
37
with pending examples (single quoted)'
39
38
@@ -43,18 +42,16 @@
43
42
end
44
43
45
44
context"for pending examples"do
46
-
# Make sure `keyword.other.rspec.pending` is really present – it may be visually indistinct from `keyword.other.rspec.example`.
45
+
# Make sure `keyword.other.rspec.pending` is really present - it may be visually indistinct from `keyword.other.rspec.example`.
47
46
it"gives `it` the scope `keyword.other.rspec.pending` (double quotes)"
48
47
it'gives `it` the scope `keyword.other.rspec.pending` (single quotes)'
49
-
50
-
48
+
51
49
# In the second line, `context` is not get highlighted correctly if the `meta.rspec.behaviour` scope extends beyond the first line (see https://github.com/rspec/rspec-tmbundle/issues/31)
52
50
context"also works for pending contexts"
53
51
context"another pending contexts"
54
-
55
52
end
56
-
57
-
iffoo
53
+
54
+
iffoo# rubocop:disable Style/IfUnlessModifier
58
55
puts"Some Ruby code here, #{should} be highlightes correctly",:foo
0 commit comments