annotate runtime/syntax/template.vim @ 21715:571832713efa
v8.2.1407
patch 8.2.1407: Vim9: type of list and dict only depends on first item
Commit: https://github.com/vim/vim/commit/127542bcebeb6480493b09d75a3be1d98a5f7797
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 9 17:22:04 2020 +0200
patch 8.2.1407: Vim9: type of list and dict only depends on first item
Problem: Vim9: type of list and dict only depends on first item.
Solution: Use all items to decide about the type.
author |
Bram Moolenaar <Bram@vim.org> |
date |
Sun, 09 Aug 2020 17:30:03 +0200 |
parents |
1eaf34420bb3 |
children |
4027cefc2aab |
rev |
line source |
16610
|
1 " Vim syntax file
|
|
2 " Language: Generic template
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
4 " Last Change: 2019 May 06
|
|
5
|
|
6 " Quit when a (custom) syntax file was already loaded
|
|
7 if exists("b:current_syntax")
|
|
8 finish
|
|
9 endif
|
|
10
|
|
11 " Known template types are very similar to HTML, E.g. golang and "Xfire User
|
|
12 " Interface Template"
|
|
13 " If you know how to recognize a more specific type for *.tmpl suggest a
|
|
14 " change to runtime/scripts.vim.
|
|
15 runtime! syntax/html.vim
|