!33 fixed typo
From: @cao-fei8 Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
1cd962c048
25
0001-fixed-typo.patch
Normal file
25
0001-fixed-typo.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 8eb17ae0541cfaa1140f75358251450bd41c8dfb Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Cl=C3=A9ment=20Saccoccio?= <clem.saccoccio@protonmail.com>
|
||||||
|
Date: Thu, 13 May 2021 12:08:41 +0200
|
||||||
|
Subject: [PATCH] fixed typo
|
||||||
|
|
||||||
|
---
|
||||||
|
pygments/lexers/grammar_notation.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/pygments/lexers/grammar_notation.py b/pygments/lexers/grammar_notation.py
|
||||||
|
index 79c02e38..910201cd 100644
|
||||||
|
--- a/pygments/lexers/grammar_notation.py
|
||||||
|
+++ b/pygments/lexers/grammar_notation.py
|
||||||
|
@@ -117,7 +117,7 @@ class AbnfLexer(RegexLexer):
|
||||||
|
(words(_core_rules, suffix=r'\b'), Keyword),
|
||||||
|
|
||||||
|
# nonterminals (ALPHA *(ALPHA / DIGIT / "-"))
|
||||||
|
- (r'[a-zA-Z][a-zA-Z0-9-]+\b', Name.Class),
|
||||||
|
+ (r'[a-zA-Z][a-zA-Z0-9-]*\b', Name.Class),
|
||||||
|
|
||||||
|
# operators
|
||||||
|
(r'(=/|=|/)', Operator),
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -17,11 +17,13 @@ need to prettify source code. Highlights are: \
|
|||||||
Name: python-pygments
|
Name: python-pygments
|
||||||
Summary: Syntax highlighting engine written in Python
|
Summary: Syntax highlighting engine written in Python
|
||||||
Version: 2.10.0
|
Version: 2.10.0
|
||||||
Release: 3
|
Release: 4
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: http://pygments.org/
|
URL: http://pygments.org/
|
||||||
Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
|
Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: 0001-fixed-typo.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -78,6 +80,9 @@ make test
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 13 2023 caofei <caofei@xfusion.com> - 2.10.0-4
|
||||||
|
- fixed typo
|
||||||
|
|
||||||
* Wed May 11 2022 wulei <wulei80@h-partners.com> - 2.10.0-3
|
* Wed May 11 2022 wulei <wulei80@h-partners.com> - 2.10.0-3
|
||||||
- License compliance rectification
|
- License compliance rectification
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user