[Lldb-commits] [PATCH] D49334: Added syntax highlighting support
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 13 18:16:01 PDT 2018
teemperor created this revision.
Herald added a subscriber: mgorny.
This patch adds syntax highlighting support to LLDB. When enabled (and lldb is allowed
to use colors), printed source code is annotated with the ANSI color escape sequences.
So far we have only one highlighter which is based on Clang and is responsible for all
languages that are supported by Clang. It essentially just runs the raw lexer over the input
and then surrounds the specific tokens with the configured escape sequences.
https://reviews.llvm.org/D49334
Files:
include/lldb/Core/Debugger.h
include/lldb/Core/Highlighter.h
source/Core/CMakeLists.txt
source/Core/Debugger.cpp
source/Core/Highlighter.cpp
source/Core/SourceManager.cpp
unittests/Core/CMakeLists.txt
unittests/Core/HighlighterTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49334.155544.patch
Type: text/x-patch
Size: 31760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180714/29cc3939/attachment-0001.bin>
More information about the lldb-commits
mailing list