annotate runtime/syntax/kscript.vim @ 35806:3835b742025e v9.1.0623

patch 9.1.0623: Mingw: errors when trying to delete non-existing files Commit: https://github.com/vim/vim/commit/325420ebe459e7f67b959ce189269b0e8ca9dc12 Author: Ken Takata <kentkt@csc.jp> Date: Fri Jul 26 19:02:11 2024 +0200 patch 9.1.0623: Mingw: errors when trying to delete non-existing files Problem: Mingw: warnings when trying to delete non-existing files Solution: Use "rm -f" instead of "rm" to suppress errors for non-existing files (Ken Takata) closes: #15350 Signed-off-by: Ken Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Jul 2024 19:15:03 +0200
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: kscript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Thomas Capricelli <orzel@yalbi.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://aquila.rezel.enst.fr/thomas/vim/kscript.vim
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
5 " CVS: $Id: kscript.vim,v 1.1 2004/06/13 17:40:02 vimboss Exp $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2034
diff changeset
7 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2034
diff changeset
8 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syn keyword kscriptPreCondit import from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn keyword kscriptHardCoded print println connect length arg mid upper lower isEmpty toInt toFloat findApplication
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword kscriptConditional if else switch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword kscriptRepeat while for do foreach
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword kscriptExceptions emit catch raise try signal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword kscriptFunction class struct enum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword kscriptConst FALSE TRUE false true
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword kscriptStatement return delete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword kscriptLabel case default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword kscriptStorageClass const
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword kscriptType in out inout var
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword kscriptTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region kscriptComment start="/\*" end="\*/" contains=kscriptTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match kscriptComment "//.*" contains=kscriptTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match kscriptComment "#.*$" contains=kscriptTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn region kscriptString start=+'+ end=+'+ skip=+\\\\\|\\'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region kscriptString start=+"+ end=+"+ skip=+\\\\\|\\"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region kscriptString start=+"""+ end=+"""+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn region kscriptString start=+'''+ end=+'''+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2034
diff changeset
37 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
39 hi def link kscriptConditional Conditional
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
40 hi def link kscriptRepeat Repeat
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
41 hi def link kscriptExceptions Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
42 hi def link kscriptFunction Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
43 hi def link kscriptConst Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
44 hi def link kscriptStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
45 hi def link kscriptLabel Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
46 hi def link kscriptStorageClass StorageClass
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
47 hi def link kscriptType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
48 hi def link kscriptTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
49 hi def link kscriptComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
50 hi def link kscriptString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
51 hi def link kscriptPreCondit PreCondit
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
52 hi def link kscriptHardCoded Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let b:current_syntax = "kscript"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " vim: ts=8