summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>2022-07-12 15:30:29 +0200
committerThomas Bracht Laumann Jespersen <t@laumann.xyz>2022-07-13 16:15:57 +0200
commitaef97da3e143463eb88bbc2c04617a858bd2cca5 (patch)
tree11679acd2b40e5cf5669bcd799625e5899b8dec0 /001_all_vim-6.3-xorg-75816.patch
downloadvim-patches-aef97da3e143463eb88bbc2c04617a858bd2cca5.tar.gz
vim-patches-aef97da3e143463eb88bbc2c04617a858bd2cca5.tar.bz2
vim-patches-aef97da3e143463eb88bbc2c04617a858bd2cca5.zip
import patchset for vim-8.2.0360
Link: https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Diffstat (limited to '001_all_vim-6.3-xorg-75816.patch')
-rw-r--r--001_all_vim-6.3-xorg-75816.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/001_all_vim-6.3-xorg-75816.patch b/001_all_vim-6.3-xorg-75816.patch
new file mode 100644
index 0000000..568b47a
--- /dev/null
+++ b/001_all_vim-6.3-xorg-75816.patch
@@ -0,0 +1,20 @@
+# Better support for xorg-x11 when syntax highlighting. Gentoo bug 75816.
+
+--- a/runtime/syntax/xf86conf.vim
++++ b/runtime/syntax/xf86conf.vim
+@@ -68,6 +68,7 @@
+ syn region xf86confSectionMonitor matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Monitor\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment,xf86confOption,xf86confKeyword
+ syn region xf86confSectionModes matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Modes\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionMode,xf86confModeLine,xf86confComment
+ syn region xf86confSectionScreen matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Screen\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confSubsectionDisplay,xf86confComment,xf86confOption,xf86confKeyword
++ syn region xf86confSectionExtensions matchgroup=xf86confSectionDelim start="^\s*Section\s\+\"Extensions\"" end="^\s*EndSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword
+ syn region xf86confSubSectionAny matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"[^\"]\+\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors
+ syn region xf86confSubSectionMode matchgroup=xf86confSectionDelim start="^\s*Mode\s\+\"[^\"]\+\"" end="^\s*EndMode\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confKeyword,@xf86confSectionErrors
+ syn region xf86confSubSectionDisplay matchgroup=xf86confSectionDelim start="^\s*SubSection\s\+\"Display\"" end="^\s*EndSubSection\>" skip="#.*$\|\"[^\"]*\"" contains=xf86confComment,xf86confOption,xf86confKeyword,@xf86confSectionErrors
+@@ -174,6 +175,7 @@
+ endif
+ syn sync match xf86confSyncSectionMonitor groupthere xf86confSectionMonitor "^\s*Section\s\+\"Monitor\""
+ syn sync match xf86confSyncSectionScreen groupthere xf86confSectionScreen "^\s*Section\s\+\"Screen\""
++syn sync match xf86confSyncSectionExtensions groupthere xf86confSectionExtensions "^\s*Section\s\+\"Extensions\""
+ syn sync match xf86confSyncEndSection groupthere NONE "^\s*End_*Section\s*$"
+
+ " Define the default highlighting