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
b01b4fa1
Kaydet (Commit)
b01b4fa1
authored
Haz 20, 1995
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added tbd's on python-font-lock-keywords
üst
98590187
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
python-mode.el
Misc/python-mode.el
+37
-0
No files found.
Misc/python-mode.el
Dosyayı görüntüle @
b01b4fa1
...
...
@@ -188,6 +188,43 @@ the Emacs bell is also rung as a warning.")
)
"*Additional keywords to highlight `python-mode' buffers."
)
;; These are taken from XEmacs 19.12's font-lock.el file. I prefer
;; these myself, but which do you think are better?
;;
;;(defconst python-font-lock-keywords
;; (purecopy
;; (list
;; (cons (concat "\\b\\("
;; (mapconcat 'identity
;; '("access" "del" "from"
;; "lambda" "return" "and"
;; "elif" "global" "not"
;; "try:" "break " "else:"
;; "if" "or" "while"
;; "except" "except:" "import"
;; "pass" "continue" "finally:"
;; "in" "print" "for"
;; "is" "raise")
;; "\\|")
;; "\\)[ \n\t(]")
;; 1)
;; '("\\bclass[ \t]+\\([a-zA-Z_]+[a-zA-Z0-9_]*\\)"
;; 1 font-lock-type-face)
;; '("\\bdef[ \t]+\\([a-zA-Z_]+[a-zA-Z0-9_]*\\)"
;; 1 font-lock-function-name-face)
;; ))
;; "Additional expressions to highlight in Python mode.")
;; R Lindsay Todd <toddr@rpi.edu> suggests these changes to the
;; original keywords, which wouldn't be necessary if we go with the
;; XEmacs defaults, but which I agree makes sense without them.
;;
;; functions
;; '("\\bdef\\s +\\(\\sw+\\)\\s *(" 1 font-lock-function-name-face)
;; classes
;; '("\\bclass\\s +\\(\\sw+\\)\\s *[(:]" 1 font-lock-type-face)
;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;; NO USER DEFINABLE VARIABLES BEYOND THIS POINT
...
...
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