d40a6e18b5
- 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
12 lines
522 B
Diff
12 lines
522 B
Diff
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 "<!--|-->"
|