vim/vim-7.3-filetype_ftl.patch
Ondřej Súkup ab99f07abc - update to 9.1.0908
- refresh vim-7.3-mktemp_tutor.patch 
 * 9.1.0908: not possible to configure :messages
 * 9.1.0907: printoptions:portrait does not change postscript Orientation
 * runtime(doc): Add vietnamese.txt to helps main TOC
 * 9.1.0906: filetype: Nvidia PTX files are not recognized
 * runtime(doc): updated version9.txt with changes from v9.1.0905
 * 9.1.0905: Missing information in CompleteDone event
 * 9.1.0904: Vim9: copy-paste error in class_defining_member()
 * 9.1.0903: potential overflow in spell_soundfold_wsal()
 * runtime(netrw): do not detach when launching external programs in gvim
 * runtime(doc): make tag alignment more consistent in filetype.txt
 * runtime(doc): fix wrong syntax and style of vietnamese.txt
 * translation(it): update Italian manpage for vimtutor
 * runtime(lua): add optional lua function folding
 * Filelist: include translations for Chapter 2 tutor
 * translation(vi): Update Vietnamese translation
 * runtime(doc): include vietnamese.txt
 * runtime(tutor): fix another typo in tutor2
 * runtime(doc): fix typo in vimtutor manpage
 * translation(it): update Italian manpage for vimtutor
 * translation(it): include Italian version of tutor chapter 2
 * runtime(tutor): regenerated some translated tutor1 files
 * runtime(tutor): fix typo in Chapter 2
 * 9.1.0902: filetype: Conda configuration files are not recognized
 * runtime(doc): Tweak documentation style a bit
 * runtime(tutor): update the tutor files and re-number the chapters
 * runtime(tutor): Update the makefiles for tutor1 and tutor2 files
 * 9.1.0901: MS-Windows: vimtutor batch script can be improved
 * runtime(doc): remove buffer-local completeopt todo item

OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=869
2024-12-07 12:58:20 +00:00

57 lines
2.0 KiB
Diff

Index: vim-9.1.0330/runtime/filetype.vim
===================================================================
--- vim-9.1.0330.orig/runtime/filetype.vim
+++ vim-9.1.0330/runtime/filetype.vim
@@ -2313,6 +2313,10 @@ au BufNewFile,BufRead *.stp setf stp
" Standard ML
au BufNewFile,BufRead *.sml setf sml
+" FreeMarker templates
+au BufNewFile,BufRead *.ftl setf ftl
+
+
" Sratus VOS command macro
au BufNewFile,BufRead *.cm setf voscm
Index: vim-9.1.0330/runtime/syntax/ftl.vim
===================================================================
--- /dev/null
+++ vim-9.1.0330/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
+
+