forked from MagicStack/MagicPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathescaping2.py
More file actions
45 lines (42 loc) · 2.77 KB
/
escaping2.py
File metadata and controls
45 lines (42 loc) · 2.77 KB
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
replace = {'"' : R'\"',
"'" : R'\'',
'\\': R'\\'}
replace : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
{ : punctuation.definition.dict.begin.python, source.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.single.python
" : source.python, string.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.single.python
: source.python
: : punctuation.separator.dict.python, source.python
: source.python
R : source.python, storage.type.string.python, string.quoted.raw.single.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.raw.single.python
\" : source.python, string.quoted.raw.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.raw.single.python
, : punctuation.separator.element.python, source.python
: source.python
" : punctuation.definition.string.begin.python, source.python, string.quoted.single.python
' : source.python, string.quoted.single.python
" : punctuation.definition.string.end.python, source.python, string.quoted.single.python
: source.python
: : punctuation.separator.dict.python, source.python
: source.python
R : source.python, storage.type.string.python, string.quoted.raw.single.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.raw.single.python
\' : source.python, string.quoted.raw.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.raw.single.python
, : punctuation.separator.element.python, source.python
: source.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.single.python
\\ : constant.character.escape.python, source.python, string.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.single.python
: : punctuation.separator.dict.python, source.python
: source.python
R : source.python, storage.type.string.python, string.quoted.raw.single.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.raw.single.python
\\ : source.python, string.quoted.raw.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.raw.single.python
} : punctuation.definition.dict.end.python, source.python