devicetree-spec.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arkadiusz Drabczyk <arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org>
To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] Fix displaying GPIO_ACTIVE_LOW in devicetree-basics.rst
Date: Thu, 20 Feb 2020 21:11:54 +0100	[thread overview]
Message-ID: <20200220201154.14207-1-arkadiusz@drabczyk.org> (raw)

        expansion_device {
                reset-gpios = <&connector 2 GPIO_ACTIVE_LOW>;
		                            ^^^^^^^^^^^^^^^
        };

^^... was shown in red boxes in the output PDF, HTML and possibly
everything else.

Signed-off-by: Arkadiusz Drabczyk <arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org>
---
 source/extensions/DtsLexer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/extensions/DtsLexer.py b/source/extensions/DtsLexer.py
index eb0e7d6..6be9a6b 100644
--- a/source/extensions/DtsLexer.py
+++ b/source/extensions/DtsLexer.py
@@ -76,7 +76,7 @@ class DtsLexer(RegexLexer):
         'value': [
             include('integers'),
             include('comments'),
-            (r'(\&)([a-zA-Z0-9_-]+)', bygroups(Operator, Text)),
+            (r'(\&)?([a-zA-Z0-9_-]+)', bygroups(Operator, Text)),
             (r'<', Punctuation, '#push'),
             (r'>', Punctuation, '#pop'),
             (r'\[', Punctuation, '#push'),
-- 
2.9.0


             reply	other threads:[~2020-02-20 20:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20 20:11 Arkadiusz Drabczyk [this message]
     [not found] ` <20200220201154.14207-1-arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org>
2020-02-27 16:27   ` [PATCH] Fix displaying GPIO_ACTIVE_LOW in devicetree-basics.rst 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=20200220201154.14207-1-arkadiusz@drabczyk.org \
    --to=arkadiusz-42wfz8eewn5g9huczpvpmw@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 read-only IMAP folder(s) and NNTP newsgroup(s).