Skip to contentSkip to conversation

Fix displaying GPIO_ACTIVE_LOW in devicetree-basics.rst

PATCH In review Arkadiusz Drabczyk 2 participants 2 messages Feb 20, 2020 – Feb 27, 2020 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix displaying GPIO_ACTIVE_LOW in devicetree-basics.rst

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

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

---
 source/extensions/DtsLexer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
source/extensions/DtsLexer.py +1 -1
index eb0e7d6..6be9a6b 100644
@@ -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'),
Signature · 1 line
2.9.0

A message that is not in the archive (sent off-list or not yet received): 20200220201154.14207-1-arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org

#2 lore raw
Quoted 5 lines · Arkadiusz Drabczyk
        expansion_device {
                reset-gpios = <&connector 2 GPIO_ACTIVE_LOW>;
		                            ^^^^^^^^^^^^^^^
        };
Quoted 7 lines

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

---
 source/extensions/DtsLexer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

4 patches applied, thanks.

Rob