Browse Source

Don't spell Pylint's inline comments `# pylint:.*`

Pedro Algarvio 9 years ago
parent
commit
25b9bb88b1
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      syntax/python.vim

+ 1
- 0
syntax/python.vim View File

@@ -187,6 +187,7 @@ syn match   pythonDot        "\." display containedin=pythonDottedName
187 187
 "
188 188
 
189 189
 syn match   pythonComment	"#.*$" display contains=pythonTodo,@Spell
190
+syn match   pythonComment	"# pylint:.*$" display contains=pythonTodo,@NoSpell   " Don't spell pylint's comments
190 191
 if !s:Enabled("g:python_highlight_file_headers_as_comments")
191 192
   syn match   pythonRun		"\%^#!.*$"
192 193
   syn match   pythonCoding	"\%^.*\%(\n.*\)\?#.*coding[:=]\s*[0-9A-Za-z-_.]\+.*$"