From 8d3c0af77592254f342ca7f35ba3721218e83b34 Mon Sep 17 00:00:00 2001 From: nfnty Date: Wed, 9 Jan 2019 15:59:09 +0000 Subject: [PATCH] Add builtin function `breakpoint` Fixes #46 --- syntax/python.vim | 2 +- tests/test.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax/python.vim b/syntax/python.vim index 2f9a47e..9169389 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -355,7 +355,7 @@ if s:Enabled('g:python_highlight_builtin_funcs') let s:funcs_re .= '|print' endif else - let s:funcs_re .= '|ascii|exec|print' + let s:funcs_re .= '|ascii|breakpoint|exec|print' endif let s:funcs_re = 'syn match pythonBuiltinFunc ''\v\.@' diff --git a/tests/test.py b/tests/test.py index 0f75ead..a843fc7 100644 --- a/tests/test.py +++ b/tests/test.py @@ -52,6 +52,7 @@ all() any() bin() bool() +breakpoint() bytearray() callable() chr()