]> git.madduck.net Git - etc/vim.git/blob - tests/data/string_quotes.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

README.md: fix mailto link (#660)
[etc/vim.git] / tests / data / string_quotes.py
1 ''''''
2 '\''
3 '"'
4 "'"
5 "\""
6 "Hello"
7 "Don't do that"
8 'Here is a "'
9 'What\'s the deal here?'
10 "What's the deal \"here\"?"
11 "And \"here\"?"
12 """Strings with "" in them"""
13 '''Strings with "" in them'''
14 '''Here's a "'''
15 '''Here's a " '''
16 '''Just a normal triple
17 quote'''
18 f"just a normal {f} string"
19 f'''This is a triple-quoted {f}-string'''
20 f'MOAR {" ".join([])}'
21 f"MOAR {' '.join([])}"
22 r"raw string ftw"
23 r'Date d\'expiration:(.*)'
24 r'Tricky "quote'
25 r'Not-so-tricky \"quote'
26 rf'{yay}'
27 '\n\
28 The \"quick\"\n\
29 brown fox\n\
30 jumps over\n\
31 the \'lazy\' dog.\n\
32 '
33 re.compile(r'[\\"]')
34 "x = ''; y = \"\""
35 "x = '''; y = \"\""
36 "x = ''''; y = \"\""
37 "x = '' ''; y = \"\""
38 "x = ''; y = \"\"\""
39 "x = '''; y = \"\"\"\""
40 "x = ''''; y = \"\"\"\"\""
41 "x = '' ''; y = \"\"\"\"\""
42 'unnecessary \"\"escaping'
43 "unnecessary \'\'escaping"
44 '\\""'
45 "\\''"
46 'Lots of \\\\\\\\\'quotes\''
47
48 # output
49
50 """"""
51 "'"
52 '"'
53 "'"
54 '"'
55 "Hello"
56 "Don't do that"
57 'Here is a "'
58 "What's the deal here?"
59 'What\'s the deal "here"?'
60 'And "here"?'
61 """Strings with "" in them"""
62 """Strings with "" in them"""
63 '''Here's a "'''
64 """Here's a " """
65 """Just a normal triple
66 quote"""
67 f"just a normal {f} string"
68 f"""This is a triple-quoted {f}-string"""
69 f'MOAR {" ".join([])}'
70 f"MOAR {' '.join([])}"
71 r"raw string ftw"
72 r"Date d\'expiration:(.*)"
73 r'Tricky "quote'
74 r"Not-so-tricky \"quote"
75 rf"{yay}"
76 "\n\
77 The \"quick\"\n\
78 brown fox\n\
79 jumps over\n\
80 the 'lazy' dog.\n\
81 "
82 re.compile(r'[\\"]')
83 "x = ''; y = \"\""
84 "x = '''; y = \"\""
85 "x = ''''; y = \"\""
86 "x = '' ''; y = \"\""
87 'x = \'\'; y = """'
88 'x = \'\'\'; y = """"'
89 'x = \'\'\'\'; y = """""'
90 'x = \'\' \'\'; y = """""'
91 'unnecessary ""escaping'
92 "unnecessary ''escaping"
93 '\\""'
94 "\\''"
95 "Lots of \\\\\\\\'quotes'"