]> git.madduck.net Git - etc/vim.git/blob - tests/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:

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