SHA256
1
0
forked from pool/nano

Accepting request 991201 from home:mauriziogalli:branches:editors

- Added obs-channel-and-patchinfo-syntax.patch to support syntax 
  highlighting for _channel and _patchinfo files used by OBS

OBS-URL: https://build.opensuse.org/request/show/991201
OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=161
This commit is contained in:
Martin Pluskal 2022-07-27 04:17:16 +00:00 committed by Git OBS Bridge
parent b1044dc358
commit d40a6e18b5
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 25 09:03:56 UTC 2022 - Maurizio Galli <maurizio.galli@suse.com>
- Added obs-channel-and-patchinfo-syntax.patch to support syntax
highlighting for _channel and _patchinfo files used by OBS
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 29 07:09:44 UTC 2022 - Martin Pluskal <mpluskal@suse.com> Fri Apr 29 07:09:44 UTC 2022 - Martin Pluskal <mpluskal@suse.com>

View File

@ -28,6 +28,8 @@ Source0: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar
Source1: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.xz.asc Source1: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.xz.asc
Source2: https://savannah.gnu.org/people/viewgpg.php?user_id=42085#/%{name}.keyring Source2: https://savannah.gnu.org/people/viewgpg.php?user_id=42085#/%{name}.keyring
Source3: nanorc Source3: nanorc
# PATCH-FIX-OPENSUSE obs-channel-and-patchinfo-syntax.patch maurizio.galli@suse.com -- enable syntax for _channel and _patchinfo files used by OBS
Patch0: obs-channel-and-patchinfo-syntax.patch
BuildRequires: file-devel BuildRequires: file-devel
BuildRequires: groff-full BuildRequires: groff-full
BuildRequires: makeinfo BuildRequires: makeinfo
@ -42,7 +44,7 @@ the Pico text editor while also offering a few enhancements.
%lang_package %lang_package
%prep %prep
%setup -q %autosetup -p1
%build %build
%configure \ %configure \

View File

@ -0,0 +1,11 @@
diff -rub a/syntax/xml.nanorc b/syntax/xml.nanorc
--- a/syntax/xml.nanorc 2022-04-08 17:13:15.000000000 +0800
+++ b/syntax/xml.nanorc 2022-07-25 16:59:05.041959714 +0800
@@ -1,6 +1,6 @@
## Syntax highlighting for XML files.
-syntax xml "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
+syntax xml "(\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$|_patchinfo|_channel)"
header "<\?xml.*version=.*\?>"
magic "(XML|SGML) (sub)?document"
comment "<!--|-->"