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
2305b3cd
Kaydet (Commit)
2305b3cd
authored
Şub 25, 2016
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix rstlint to also look for indented comments that should be directives.
üst
eae3336e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rstlint.py
Doc/tools/rstlint.py
+2
-2
No files found.
Doc/tools/rstlint.py
Dosyayı görüntüle @
2305b3cd
...
...
@@ -43,7 +43,7 @@ directives = [
]
all_directives
=
'('
+
'|'
.
join
(
directives
)
+
')'
seems_directive_re
=
re
.
compile
(
r'\.\.
%
s([^a-z:]|:(?!:))'
%
all_directives
)
seems_directive_re
=
re
.
compile
(
r'
(?<!\.)
\.\.
%
s([^a-z:]|:(?!:))'
%
all_directives
)
default_role_re
=
re
.
compile
(
r'(^| )`\w([^`]*?\w)?`($| )'
)
leaked_markup_re
=
re
.
compile
(
r'[a-z]::\s|`|\.\.\s*\w+:'
)
...
...
@@ -83,7 +83,7 @@ def check_suspicious_constructs(fn, lines):
"""Check for suspicious reST constructs."""
inprod
=
False
for
lno
,
line
in
enumerate
(
lines
):
if
seems_directive_re
.
mat
ch
(
line
):
if
seems_directive_re
.
sear
ch
(
line
):
yield
lno
+
1
,
'comment seems to be intended as a directive'
if
'.. productionlist::'
in
line
:
inprod
=
True
...
...
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