[PATCH] Fix displaying GPIO_ACTIVE_LOW in devicetree-basics.rst

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



        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@xxxxxxxxxxxx>
---
 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




[Index of Archives]     [Device Tree]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]

  Powered by Linux