Mercurial > vim
annotate runtime/syntax/syntax.vim @ 33486:93c715c63a4a v9.0.1994
patch 9.0.1994: inconsistent feature description
Commit: https://github.com/vim/vim/commit/ac9c6d5c786a016ca1dce297d167a5a963881f7e
Author: RestorerZ <restorer@mail2k.ru>
Date: Thu Oct 5 22:25:12 2023 +0200
patch 9.0.1994: inconsistent feature description
Problem: inconsistent feature description
Solution: delete old mentioned feature sets small and big
The may however still be mentioned for historical reasons. e.g. The
last Amiga built version is for Vim6.2 and is still a big version.
closes: #13273
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: RestorerZ <restorer@mail2k.ru>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 05 Oct 2023 22:30:05 +0200 |
parents | 4027cefc2aab |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax support file |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
28517
diff
changeset
|
2 " Maintainer: The Vim Project <https://github.com/vim/vim> |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
28517
diff
changeset
|
3 " Last Change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
28517
diff
changeset
|
4 " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
7 | 5 |
6 " This file is used for ":syntax on". | |
7 " It installs the autocommands and starts highlighting for all buffers. | |
8 | |
9 if !has("syntax") | |
10 finish | |
11 endif | |
12 | |
13 " If Syntax highlighting appears to be on already, turn it off first, so that | |
14 " any leftovers are cleared. | |
15 if exists("syntax_on") || exists("syntax_manual") | |
16 so <sfile>:p:h/nosyntax.vim | |
17 endif | |
18 | |
19 " Load the Syntax autocommands and set the default methods for highlighting. | |
20 runtime syntax/synload.vim | |
21 | |
22 " Load the FileType autocommands if not done yet. | |
23 if exists("did_load_filetypes") | |
24 let s:did_ft = 1 | |
25 else | |
26 filetype on | |
27 let s:did_ft = 0 | |
28 endif | |
29 | |
30 " Set up the connection between FileType and Syntax autocommands. | |
31 " This makes the syntax automatically set when the file type is detected. | |
28433
367439b95aba
patch 8.2.4741: startup test fails
Bram Moolenaar <Bram@vim.org>
parents:
7
diff
changeset
|
32 " Avoid an error when 'verbose' is set and <amatch> expansion fails. |
7 | 33 augroup syntaxset |
28433
367439b95aba
patch 8.2.4741: startup test fails
Bram Moolenaar <Bram@vim.org>
parents:
7
diff
changeset
|
34 au! FileType * 0verbose exe "set syntax=" . expand("<amatch>") |
7 | 35 augroup END |
36 | |
37 | |
38 " Execute the syntax autocommands for the each buffer. | |
39 " If the filetype wasn't detected yet, do that now. | |
40 " Always do the syntaxset autocommands, for buffers where the 'filetype' | |
41 " already was set manually (e.g., help buffers). | |
42 doautoall syntaxset FileType | |
43 if !s:did_ft | |
44 doautoall filetypedetect BufRead | |
45 endif |