~ubuntu-branches/debian/sid/nano/sid

« back to all changes in this revision

Viewing changes to doc/syntax/python.nanorc

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2015-07-06 14:05:33 UTC
  • mfrom: (1.3.5)
  • Revision ID: package-import@ubuntu.com-20150706140533-atf2ip59pqbspkjo
Tags: 2.4.2-1
* The "Acord del Botànic" release.
* New upstream release.
  - Includes many improvements to syntax hightlighting definitions
    (closes: #664456, #688892, #744005, #783763, #785508, #788318, #790017).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
syntax "python" "\.py$"
4
4
header "^#!.*python[-0-9._]*"
 
5
linter pyflakes
5
6
 
6
7
# Function definitions.
7
8
icolor brightblue "def [0-9A-Z_]+"
15
16
# Comments.
16
17
color brightred "(^|[[:blank:]])#.*$"
17
18
# Multiline strings.
18
 
color brightgreen start="\"\"\"([^"),]|$)" end="(^|[^(])\"\"\""
19
 
color brightgreen    start="'''([^'),]|$)" end="(^|[^(])'''"
 
19
color brightgreen start="\"\"\"[^"),]" end="(^|[^(])\"\"\""
 
20
color brightgreen    start="'''[^'),]" end="(^|[^(])'''"
20
21
 
21
22
# Reminders.
22
23
color ,yellow "(FIXME|TODO|XXX)"