]> git.pld-linux.org Git - packages/python3-pygments.git/commitdiff
improvements to rpmspec lexer
authorElan Ruusamäe <glen@delfi.ee>
Mon, 15 Jun 2015 12:26:46 +0000 (15:26 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 15 Jun 2015 12:26:46 +0000 (15:26 +0300)
python-pygments.spec
rpmspec.patch [new file with mode: 0644]

index f5b486c7e0838b4a51e2f2e91ad85be927a478cd..4900d104e7fe5ad08896ca6982670d2bb82c48a1 100644 (file)
@@ -8,11 +8,12 @@ Summary:      A generic syntax highlighter as Python 2.x module
 Summary(pl.UTF-8):     Moduł Pythona 2.x do ogólnego podświetlania składni
 Name:          python-%{module}
 Version:       2.0.2
-Release:       1
+Release:       2
 License:       BSD
 Group:         Development/Languages/Python
 Source0:       http://pypi.python.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
 # Source0-md5: 238587a1370d62405edabd0794b3ec4a
+Patch0:                rpmspec.patch
 URL:           http://pygments.org/
 %if %{with python2}
 BuildRequires: python
@@ -104,6 +105,7 @@ forów, wiki i inne plikacje wymagające ładnego wyświetlania kodu
 
 %prep
 %setup -q -n Pygments-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/rpmspec.patch b/rpmspec.patch
new file mode 100644 (file)
index 0000000..f638ef4
--- /dev/null
@@ -0,0 +1,12 @@
+--- Pygments-2.0.2/pygments/lexers/installers.py~      2014-11-10 21:17:51.000000000 +0200
++++ Pygments-2.0.2/pygments/lexers/installers.py       2015-06-15 14:57:19.665609691 +0300
+@@ -201,7 +201,8 @@
+             (r'.', Text),
+         ],
+         'macro': [
+-            (r'%define.*\n', Comment.Preproc),
++            (r'%(?:un)?define.*\n', Comment.Preproc),
++            (r'%include.*\n', Comment.Preproc),
+             (r'%\{\!\?.*%define.*\}', Comment.Preproc),
+             (r'(%(?:if(?:n?arch)?|else(?:if)?|endif))(.*)$',
+              bygroups(Comment.Preproc, Text)),
This page took 0.109838 seconds and 4 git commands to generate.