Skip to content

Add new exceptions #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Split FIXME, TODO, XXX
  • Loading branch information
Abrosimov-a-a committed Nov 18, 2022
commit 48cd0ab17f8b7af4de8f7edbc31eb5b3156b5959
8 changes: 6 additions & 2 deletions syntax/python.vim
Original file line number Diff line number Diff line change
@@ -135,12 +135,14 @@ syn match pythonDot '\.' display containedin=pythonDottedName
" Comments
"

syn match pythonComment '#.*$' display contains=pythonTodo,@Spell
syn match pythonComment '#.*$' display contains=pythonTodo,pythonFixme,pythonXXX,@Spell
if !s:Enabled('g:python_highlight_file_headers_as_comments')
syn match pythonRun '\%^#!.*$'
syn match pythonCoding '\%^.*\%(\n.*\)\?#.*coding[:=]\s*[0-9A-Za-z-_.]\+.*$'
endif
syn keyword pythonTodo TODO FIXME XXX contained
syn keyword pythonTodo TODO contained
syn keyword pythonFixme FIXME contained
syn keyword pythonXXX XXX contained

"
" Errors
@@ -449,6 +451,8 @@ if v:version >= 508 || !exists('did_python_syn_inits')
HiLink pythonRun Special
endif
HiLink pythonTodo Todo
HiLink pythonFixme Todo
HiLink pythonXXX Todo

HiLink pythonError Error
HiLink pythonIndentError Error