devicetree-spec.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Syntax highlighting
@ 2016-10-28  6:12 Stewart Smith
       [not found] ` <1477635173-9292-1-git-send-email-stewart-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stewart Smith @ 2016-10-28  6:12 UTC (permalink / raw)
  To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA; +Cc: Stewart Smith

Since http://pygments.org/ (what Sphinx uses for syntax highlighting)
doesn't do DTS yet, implement DTS syntax highlighting and then use it
(and the standard C source highlighting).

I'll be submitting the DTS highlighting upstream too, but having it in
tree will ensure it works for people not running a future version of
pygments.

Stewart Smith (2):
  Enable syntax highlighting of device tree source
  Syntax highlight C and DTS

 source/conf.py                |  6 +++
 source/devicenodes.rst        | 18 ++++-----
 source/devicetree-basics.rst  | 14 ++++---
 source/extensions/DtsLexer.py | 89 +++++++++++++++++++++++++++++++++++++++++++
 source/flattened-format.rst   |  6 +--
 5 files changed, 115 insertions(+), 18 deletions(-)
 create mode 100644 source/extensions/DtsLexer.py

-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-15 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-28  6:12 [PATCH 0/2] Syntax highlighting Stewart Smith
     [not found] ` <1477635173-9292-1-git-send-email-stewart-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-10-28  6:12   ` [PATCH 1/2] Enable syntax highlighting of device tree source Stewart Smith
2016-10-28  6:12   ` [PATCH 2/2] Syntax highlight C and DTS Stewart Smith
2016-11-15 23:04   ` [PATCH 0/2] Syntax highlighting Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).