annotate runtime/syntax/st.vim @ 25660:7b80b25a5c2b v8.2.3366

patch 8.2.3366: Vim9: debugging elseif does not stop before condition Commit: https://github.com/vim/vim/commit/093165c899f1620543844d1c1a7a05975697c286 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 22 13:35:31 2021 +0200 patch 8.2.3366: Vim9: debugging elseif does not stop before condition Problem: Vim9: debugging elseif does not stop before condition. Solution: Move debug statement to after the jump. (closes https://github.com/vim/vim/issues/8781)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Aug 2021 13:45:04 +0200
parents 46763b01cd9a
children 11b656e74444
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: Smalltalk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Arndt Hesse <hesse@self.de>
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Last Change: 2012 Feb 12 by Thilo Six
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
6 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
7 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
11 let s:cpo_save = &cpo
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
12 set cpo&vim
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
13
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " some Smalltalk keywords and standard methods
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword stKeyword super self class true false new not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword stKeyword notNil isNil inspect out nil
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match stMethod "\<do\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match stMethod "\<whileTrue\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match stMethod "\<whileFalse\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match stMethod "\<ifTrue\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match stMethod "\<ifFalse\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match stMethod "\<put\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match stMethod "\<to\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match stMethod "\<at\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match stMethod "\<add\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match stMethod "\<new\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match stMethod "\<for\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match stMethod "\<methods\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match stMethod "\<methodsFor\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match stMethod "\<instanceVariableNames\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match stMethod "\<classVariableNames\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match stMethod "\<poolDictionaries\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match stMethod "\<subclass\>:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " the block of local variables of a method
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn region stLocalVariables start="^[ \t]*|" end="|"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " the Smalltalk comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn region stComment start="\"" end="\""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " the Smalltalk strings and single characters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region stString start='\'' skip="''" end='\''
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match stCharacter "$."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " the symols prefixed by a '#'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match stSymbol "\(#\<[a-z_][a-z0-9_]*\>\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match stSymbol "\(#'[^']*'\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " the variables in a statement block for loops
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match stBlockVariable "\(:[ \t]*\<[a-z_][a-z0-9_]*\>[ \t]*\)\+|" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " some representations of numbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match stNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match stFloat "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match stFloat "\<\d\+e[-+]\=\d\+[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " a try to higlight paren mismatches
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn region stParen transparent start='(' end=')' contains=ALLBUT,stParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match stParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn region stBlock transparent start='\[' end='\]' contains=ALLBUT,stBlockError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match stBlockError "\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn region stSet transparent start='{' end='}' contains=ALLBUT,stSetError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match stSetError "}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 hi link stParenError stError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 hi link stSetError stError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 hi link stBlockError stError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " synchronization for syntax analysis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn sync minlines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
77 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
79 hi def link stKeyword Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
80 hi def link stMethod Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
81 hi def link stComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
82 hi def link stCharacter Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
83 hi def link stString Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
84 hi def link stSymbol Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
85 hi def link stNumber Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
86 hi def link stFloat Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
87 hi def link stError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
88 hi def link stLocalVariables Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
89 hi def link stBlockVariable Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 let b:current_syntax = "st"
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
93
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
94 let &cpo = s:cpo_save
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
95 unlet s:cpo_save