Enable syntax highlighting for watches and locals
This commit is contained in:
parent
94b8f0a81d
commit
ed6beff03b
4 changed files with 30 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ class CodeView( object ):
|
|||
|
||||
self._terminal_window = None
|
||||
self._terminal_buffer_number = None
|
||||
self.current_syntax = None
|
||||
|
||||
self._logger = logging.getLogger( __name__ )
|
||||
utils.SetUpLogging( self._logger )
|
||||
|
|
@ -93,6 +94,9 @@ class CodeView( object ):
|
|||
frame[ 'line' ],
|
||||
frame[ 'source' ][ 'path' ] ) )
|
||||
|
||||
self.current_syntax = utils.ToUnicode(
|
||||
vim.current.buffer.options[ 'syntax' ] )
|
||||
|
||||
return True
|
||||
|
||||
def Clear( self ):
|
||||
|
|
@ -102,6 +106,7 @@ class CodeView( object ):
|
|||
self._signs[ 'vimspectorPC' ] = None
|
||||
|
||||
self._UndisplaySigns()
|
||||
self.current_syntax = None
|
||||
|
||||
def Reset( self ):
|
||||
self.ClearBreakpoints()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue