Add highlighting for GDB command listings and gdbinit files
ClosedPublic

Authored by mwolff on Apr 3 2018, 12:04 PM.

Details

Summary

Command listings start their non-output lines with (gdb) or >
for multi-line commands. gdbinit files on the other hand don't
use either, but also don't show any output.

The existing GDB highlighting file is renamed to gdb-bt as it only
highlights backtraces. It is reused by the new GDB highlighter
to pretty-print outputs of bt-producing commands such as bt, where,
up, down etc.

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mwolff created this revision.Apr 3 2018, 12:04 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 3 2018, 12:04 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
mwolff requested review of this revision.Apr 3 2018, 12:04 PM

Ping? Or can I just commit?

cullmann accepted this revision.Apr 16 2018, 9:04 AM
cullmann added a subscriber: cullmann.

Given we have unit tests + the static checker is happy (I assume), feel free to commit.

This revision is now accepted and ready to land.Apr 16 2018, 9:04 AM
This revision was automatically updated to reflect the committed changes.