Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3be637e6
Kaydet (Commit)
3be637e6
authored
Ara 07, 2011
tarafından
Ned Deily
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #8641: Update IDLE 3 syntax coloring to recognize b".." and not u"..".
(Patch by Tal Einat)
üst
4ce6aa4b
2f0ad742
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
ColorDelegator.py
Lib/idlelib/ColorDelegator.py
+4
-4
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/ColorDelegator.py
Dosyayı görüntüle @
3be637e6
...
...
@@ -20,10 +20,10 @@ def make_pat():
# 1st 'file' colorized normal, 2nd as builtin, 3rd as string
builtin
=
r"([^.'\"\\#]\b|^)"
+
any
(
"BUILTIN"
,
builtinlist
)
+
r"\b"
comment
=
any
(
"COMMENT"
,
[
r"#[^\n]*"
])
sqstring
=
r"(\b[rR
uU
])?'[^'\\\n]*(\\.[^'\\\n]*)*'?"
dqstring
=
r'(\b[rR
uU
])?"[^"\\\n]*(\\.[^"\\\n]*)*"?'
sq3string
=
r"(\b[rR
uU
])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
dq3string
=
r'(\b[rR
uU
])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?'
sqstring
=
r"(\b[rR
bB
])?'[^'\\\n]*(\\.[^'\\\n]*)*'?"
dqstring
=
r'(\b[rR
bB
])?"[^"\\\n]*(\\.[^"\\\n]*)*"?'
sq3string
=
r"(\b[rR
bB
])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
dq3string
=
r'(\b[rR
bB
])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?'
string
=
any
(
"STRING"
,
[
sq3string
,
dq3string
,
sqstring
,
dqstring
])
return
kw
+
"|"
+
builtin
+
"|"
+
comment
+
"|"
+
string
+
\
"|"
+
any
(
"SYNC"
,
[
r"\n"
])
...
...
Misc/ACKS
Dosyayı görüntüle @
3be637e6
...
...
@@ -275,6 +275,7 @@ Rodolpho Eckhardt
John Edmonds
Grant Edwards
John Ehresman
Tal Einat
Eric Eisner
Andrew Eland
Julien Élie
...
...
Misc/NEWS
Dosyayı görüntüle @
3be637e6
...
...
@@ -406,6 +406,9 @@ Core and Builtins
Library
-------
-
Issue
#
8641
:
Update
IDLE
3
syntax
coloring
to
recognize
b
".."
and
not
u
".."
.
Patch
by
Tal
Einat
.
-
Issue
#
13464
:
Add
a
readinto
()
method
to
http
.
client
.
HTTPResponse
.
Patch
by
Jon
Kuhn
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment