~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to runtime/syntax/python.vim

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-01-13 18:39:18 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090113183918-kgq1jzdwsbbex4pq
Tags: 2:7.2.079-1ubuntu1
* Resynchronise with Debian (diversions fix closes LP: #296324). Remaining
  changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
syn keyword pythonTodo          TODO FIXME XXX contained
55
55
 
56
56
" Decorators (new in Python 2.4)
57
 
syn match   pythonDecorator     "@" display nextgroup=pythonFunction skipwhite
 
57
syn match   pythonDecoratorName "[[:alpha:]_][[:alnum:]_]*\%(\.[[:alpha:]_][[:alnum:]_]*\)*" contained
 
58
syn match   pythonDecorator     "@" display nextgroup=pythonDecoratorName skipwhite
58
59
 
59
60
" strings
60
61
syn region pythonString         matchgroup=Normal start=+[uU]\='+ end=+'+ skip=+\\\\\|\\'+ contains=pythonEscape,@Spell
150
151
  " The default methods for highlighting.  Can be overridden later
151
152
  HiLink pythonStatement        Statement
152
153
  HiLink pythonFunction         Function
 
154
  HiLink pythonDecoratorName    Function
153
155
  HiLink pythonConditional      Conditional
154
156
  HiLink pythonRepeat           Repeat
155
157
  HiLink pythonString           String