Mercurial > vim
annotate runtime/syntax/model.vim @ 34028:bcf1429cb1fc v9.0.2188
patch 9.0.2188: cursor wrong after { in single line buffer
Commit: https://github.com/vim/vim/commit/9e6549d2fb282c45a2492ea95fe7ba54c2082c3e
Author: Gary Johnson <garyjohn@spocom.com>
Date: Wed Dec 27 19:12:43 2023 +0100
patch 9.0.2188: cursor wrong after { in single line buffer
Problem: cursor wrong after { in single line buffer
(Edwin Chan)
Solution: do not place the cursor at the end for a single
line buffer when moving backwards
(Gary Johnson)
closes: #13780
closes: #13783
Signed-off-by: Gary Johnson <garyjohn@spocom.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 27 Dec 2023 19:30:03 +0100 |
parents | 71cbad0921c9 |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Model | |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
344
diff
changeset
|
3 " 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:
344
diff
changeset
|
4 " Last Change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
344
diff
changeset
|
5 " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
7 | 6 |
7 " very basic things only (based on the vgrindefs file). | |
32975
71cbad0921c9
runtime: Remove Brams name from a few more runtime files (#12780)
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
8 " If you use this language, please improve it, and send patches! |
7 | 9 |
344 | 10 " Quit when a (custom) syntax file was already loaded |
11 if exists("b:current_syntax") | |
7 | 12 finish |
13 endif | |
14 | |
15 " A bunch of keywords | |
16 syn keyword modelKeyword abs and array boolean by case cdnl char copied dispose | |
17 syn keyword modelKeyword div do dynamic else elsif end entry external FALSE false | |
18 syn keyword modelKeyword fi file for formal fortran global if iff ift in integer include | |
19 syn keyword modelKeyword inline is lbnd max min mod new NIL nil noresult not notin od of | |
20 syn keyword modelKeyword or procedure public read readln readonly record recursive rem rep | |
21 syn keyword modelKeyword repeat res result return set space string subscript such then TRUE | |
22 syn keyword modelKeyword true type ubnd union until varies while width | |
23 | |
24 " Special keywords | |
25 syn keyword modelBlock beginproc endproc | |
26 | |
27 " Comments | |
28 syn region modelComment start="\$" end="\$" end="$" | |
29 | |
30 " Strings | |
31 syn region modelString start=+"+ end=+"+ | |
32 | |
33 " Character constant (is this right?) | |
34 syn match modelString "'." | |
35 | |
36 " Define the default highlighting. | |
344 | 37 " Only used when an item doesn't have highlighting yet |
38 hi def link modelKeyword Statement | |
39 hi def link modelBlock PreProc | |
40 hi def link modelComment Comment | |
41 hi def link modelString String | |
7 | 42 |
43 let b:current_syntax = "model" | |
44 | |
45 " vim: ts=8 sw=2 |