Files
vim/vim-7.3-filetype_ftl.patch

54 lines
1.9 KiB
Diff
Raw Permalink Normal View History

- update to 9.1.1861 - refresh patches: vim-7.3-filetype_changes.patch vim-7.3-filetype_ftl.patch vim-7.3-filetype_spec.patch vim-7.3-sh_is_bash.patch vim-7.4-filetype_apparmor.patch - drop last support for python2 - enable wayland support * patch 9.1.1861: Amiga: Locating runtime dir and rc files can be simplified * patch 9.1.1860: clipboard register "+" enabled with cplipboard provider feature * patch 9.1.1859: completion: whitespace not cleared with 'ai' * patch 9.1.1858: v:register not reset after Visual mode command * patch 9.1.1857: Missing clipboard provider support * patch 9.1.1856: cannot style popup window (border, shadow, etc) * patch 9.1.1855: Makefile: using non-portable syntax * runtime(doc): Miscellaneous documentation fixes * runtime(doc): Fix example highlighting at :help prop_list() * runtime(doc): Normalise formatting of builtin function descriptions * runtime(doc): Remove accidental option name highlighting from :help channel.txt * patch 9.1.1854: unnecessary code in optionstr.c * patch 9.1.1853: Ctrl-F and Ctrl-B at more prompt not working with key protocol * runtime(vimcomplete): do not complete on empty line * runtime(doc): fix inconsistent alignment * runtime(bitbake): fix multiline Python function parameter syntax * runtime(rst): Preserve indentation of directives * runtime(rst): Update b:undo_ftplugin variable * runtime(rst): Style update * runtime(rst): Enable spell checking for more syntax constructs * runtime(rst): Inline literal escape support OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=907
2025-10-16 19:04:46 +00:00
Index: vim-9.1.1856/runtime/filetype.vim
===================================================================
- update to 9.1.1861 - refresh patches: vim-7.3-filetype_changes.patch vim-7.3-filetype_ftl.patch vim-7.3-filetype_spec.patch vim-7.3-sh_is_bash.patch vim-7.4-filetype_apparmor.patch - drop last support for python2 - enable wayland support * patch 9.1.1861: Amiga: Locating runtime dir and rc files can be simplified * patch 9.1.1860: clipboard register "+" enabled with cplipboard provider feature * patch 9.1.1859: completion: whitespace not cleared with 'ai' * patch 9.1.1858: v:register not reset after Visual mode command * patch 9.1.1857: Missing clipboard provider support * patch 9.1.1856: cannot style popup window (border, shadow, etc) * patch 9.1.1855: Makefile: using non-portable syntax * runtime(doc): Miscellaneous documentation fixes * runtime(doc): Fix example highlighting at :help prop_list() * runtime(doc): Normalise formatting of builtin function descriptions * runtime(doc): Remove accidental option name highlighting from :help channel.txt * patch 9.1.1854: unnecessary code in optionstr.c * patch 9.1.1853: Ctrl-F and Ctrl-B at more prompt not working with key protocol * runtime(vimcomplete): do not complete on empty line * runtime(doc): fix inconsistent alignment * runtime(bitbake): fix multiline Python function parameter syntax * runtime(rst): Preserve indentation of directives * runtime(rst): Update b:undo_ftplugin variable * runtime(rst): Style update * runtime(rst): Enable spell checking for more syntax constructs * runtime(rst): Inline literal escape support OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=907
2025-10-16 19:04:46 +00:00
--- vim-9.1.1856.orig/runtime/filetype.vim
+++ vim-9.1.1856/runtime/filetype.vim
@@ -1638,3 +1638,7 @@ let &cpo = s:cpo_save
unlet s:cpo_save
- update to 9.1.1861 - refresh patches: vim-7.3-filetype_changes.patch vim-7.3-filetype_ftl.patch vim-7.3-filetype_spec.patch vim-7.3-sh_is_bash.patch vim-7.4-filetype_apparmor.patch - drop last support for python2 - enable wayland support * patch 9.1.1861: Amiga: Locating runtime dir and rc files can be simplified * patch 9.1.1860: clipboard register "+" enabled with cplipboard provider feature * patch 9.1.1859: completion: whitespace not cleared with 'ai' * patch 9.1.1858: v:register not reset after Visual mode command * patch 9.1.1857: Missing clipboard provider support * patch 9.1.1856: cannot style popup window (border, shadow, etc) * patch 9.1.1855: Makefile: using non-portable syntax * runtime(doc): Miscellaneous documentation fixes * runtime(doc): Fix example highlighting at :help prop_list() * runtime(doc): Normalise formatting of builtin function descriptions * runtime(doc): Remove accidental option name highlighting from :help channel.txt * patch 9.1.1854: unnecessary code in optionstr.c * patch 9.1.1853: Ctrl-F and Ctrl-B at more prompt not working with key protocol * runtime(vimcomplete): do not complete on empty line * runtime(doc): fix inconsistent alignment * runtime(bitbake): fix multiline Python function parameter syntax * runtime(rst): Preserve indentation of directives * runtime(rst): Update b:undo_ftplugin variable * runtime(rst): Style update * runtime(rst): Enable spell checking for more syntax constructs * runtime(rst): Inline literal escape support OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=907
2025-10-16 19:04:46 +00:00
" vim: ts=8
+" FreeMarker templates
+au BufNewFile,BufRead *.ftl setf ftl
+
+
- update to 9.1.1861 - refresh patches: vim-7.3-filetype_changes.patch vim-7.3-filetype_ftl.patch vim-7.3-filetype_spec.patch vim-7.3-sh_is_bash.patch vim-7.4-filetype_apparmor.patch - drop last support for python2 - enable wayland support * patch 9.1.1861: Amiga: Locating runtime dir and rc files can be simplified * patch 9.1.1860: clipboard register "+" enabled with cplipboard provider feature * patch 9.1.1859: completion: whitespace not cleared with 'ai' * patch 9.1.1858: v:register not reset after Visual mode command * patch 9.1.1857: Missing clipboard provider support * patch 9.1.1856: cannot style popup window (border, shadow, etc) * patch 9.1.1855: Makefile: using non-portable syntax * runtime(doc): Miscellaneous documentation fixes * runtime(doc): Fix example highlighting at :help prop_list() * runtime(doc): Normalise formatting of builtin function descriptions * runtime(doc): Remove accidental option name highlighting from :help channel.txt * patch 9.1.1854: unnecessary code in optionstr.c * patch 9.1.1853: Ctrl-F and Ctrl-B at more prompt not working with key protocol * runtime(vimcomplete): do not complete on empty line * runtime(doc): fix inconsistent alignment * runtime(bitbake): fix multiline Python function parameter syntax * runtime(rst): Preserve indentation of directives * runtime(rst): Update b:undo_ftplugin variable * runtime(rst): Style update * runtime(rst): Enable spell checking for more syntax constructs * runtime(rst): Inline literal escape support OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=907
2025-10-16 19:04:46 +00:00
Index: vim-9.1.1856/runtime/syntax/ftl.vim
===================================================================
--- /dev/null
- update to 9.1.1861 - refresh patches: vim-7.3-filetype_changes.patch vim-7.3-filetype_ftl.patch vim-7.3-filetype_spec.patch vim-7.3-sh_is_bash.patch vim-7.4-filetype_apparmor.patch - drop last support for python2 - enable wayland support * patch 9.1.1861: Amiga: Locating runtime dir and rc files can be simplified * patch 9.1.1860: clipboard register "+" enabled with cplipboard provider feature * patch 9.1.1859: completion: whitespace not cleared with 'ai' * patch 9.1.1858: v:register not reset after Visual mode command * patch 9.1.1857: Missing clipboard provider support * patch 9.1.1856: cannot style popup window (border, shadow, etc) * patch 9.1.1855: Makefile: using non-portable syntax * runtime(doc): Miscellaneous documentation fixes * runtime(doc): Fix example highlighting at :help prop_list() * runtime(doc): Normalise formatting of builtin function descriptions * runtime(doc): Remove accidental option name highlighting from :help channel.txt * patch 9.1.1854: unnecessary code in optionstr.c * patch 9.1.1853: Ctrl-F and Ctrl-B at more prompt not working with key protocol * runtime(vimcomplete): do not complete on empty line * runtime(doc): fix inconsistent alignment * runtime(bitbake): fix multiline Python function parameter syntax * runtime(rst): Preserve indentation of directives * runtime(rst): Update b:undo_ftplugin variable * runtime(rst): Style update * runtime(rst): Enable spell checking for more syntax constructs * runtime(rst): Inline literal escape support OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=907
2025-10-16 19:04:46 +00:00
+++ vim-9.1.1856/runtime/syntax/ftl.vim
@@ -0,0 +1,36 @@
+" Vim syntax file
+" Language: FreeMarker Template Language (FTL)
+" Maintainer: Stephan M<>ller <stephan@chaquotay.net>
+" Last Change: 2003 Oct 7
+
+syn case match
+
+" directives and interpolations
+syn region ftlStartDirective start=+<#+ end=+>+ contains=ftlKeyword, ftlDirective, ftlString, ftlComment
+syn region ftlEndDirective start=+</#+ end=+>+ contains=ftlDirective
+syn region ftlStartUserDirective start=+<@+ end=+>+ contains=ftlString, ftlComment
+syn region ftlEndUserDirective start=+</@+ end=+>+
+syn region ftlInterpolation start=+${+ end=+}+
+syn region ftlInterpolation2 start=+#{+ end=+}+
+syn region ftlString contained start=+"+ end=+"+
+syn region ftlComment start=+<#--+ end=+-->+
+
+" keywords
+syn keyword ftlDirective contained list if else macro import include switch case break
+syn keyword ftlDirective contained assign local global nested recurse fallback visit
+syn keyword ftlDirective contained function return t rt lt nt ftl
+syn keyword ftlKeyword contained as in using
+
+" highlighting
+highlight link ftlKeyword Statement
+highlight link ftlDirective Statement
+highlight link ftlStartDirective Function
+highlight link ftlEndDirective Function
+highlight link ftlStartUserDirective Function
+highlight link ftlEndUserDirective Function
+highlight link ftlInterpolation Constant
+highlight link ftlInterpolation2 Constant
+highlight link ftlString Constant
+highlight link ftlComment Comment
+
+