summaryrefslogtreecommitdiff
path: root/tests/examplefiles/sed/reverse.sed.output
blob: 29ee5da2342ee0ccd9f93caceec497c5e6c48023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
'#!/usr/bin/sed -f' Comment.Single
'\n\n'        Text.Whitespace

'/'           Punctuation
'..'          Literal.String.Regex
'/'           Punctuation
'!'           Punctuation
' '           Text.Whitespace
'b'           Keyword
'\n\n'        Text.Whitespace

'# Reverse a line.  Begin embedding the line between two newlines' Comment.Single
'\n'          Text.Whitespace

's'           Keyword
'/'           Punctuation
'^.*$'        Literal.String.Regex
'/'           Punctuation
'\\\n&\\\n'   Literal.String.Single

'/'           Punctuation
'\n\n'        Text.Whitespace

'# Move first character at the end.  The regexp matches until' Comment.Single
'\n'          Text.Whitespace

'# there are zero or one characters between the markers' Comment.Single
'\n'          Text.Whitespace

't'           Keyword
'x'           Literal.String.Single
'\n'          Text.Whitespace

':'           Keyword
'x'           Literal.String.Single
'\n'          Text.Whitespace

's'           Keyword
'/'           Punctuation
'\\(\\n.\\)\\(.*\\)\\(.\\n\\)' Literal.String.Regex
'/'           Punctuation
'\\3\\2\\1'   Literal.String.Single
'/'           Punctuation
'\n'          Text.Whitespace

't'           Keyword
'x'           Literal.String.Single
'\n\n'        Text.Whitespace

'# Remove the newline markers' Comment.Single
'\n'          Text.Whitespace

's'           Keyword
'/'           Punctuation
'\\n'         Literal.String.Regex
'/'           Punctuation
'/'           Punctuation
'g'           Keyword
'\n'          Text.Whitespace