From: Stewart Smith <stewart-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Stewart Smith
<stewart-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Subject: [PATCH 0/2] Syntax highlighting
Date: Fri, 28 Oct 2016 17:12:51 +1100 [thread overview]
Message-ID: <1477635173-9292-1-git-send-email-stewart@linux.vnet.ibm.com> (raw)
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
next reply other threads:[~2016-10-28 6:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-28 6:12 Stewart Smith [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1477635173-9292-1-git-send-email-stewart@linux.vnet.ibm.com \
--to=stewart-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
--cc=devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).