annotate runtime/syntax/chicken.vim @ 17956:1f6d5f9ddeb0 v8.1.1974

patch 8.1.1974: Coverity warns for using pointer as array Commit: https://github.com/vim/vim/commit/1f3165bc34c6c608584a73f13faec27dd7c7e2fa Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 4 13:21:26 2019 +0200 patch 8.1.1974: Coverity warns for using pointer as array Problem: Coverity warns for using pointer as array. Solution: Call var2fpos() directly instead of using f_line().
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Sep 2019 13:30:03 +0200
parents 02b3f719eacb
children 29ec2c198c8d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Vim syntax file
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 " Language: Scheme (CHICKEN)
13437
02b3f719eacb Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
3 " Last Change: 2018-02-05
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 " Author: Evan Hanson <evhan@foldling.org>
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 " Maintainer: Evan Hanson <evhan@foldling.org>
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 " URL: https://foldling.org/vim/syntax/chicken.vim
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 " Notes: This is supplemental syntax, to be loaded after the core Scheme
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 " syntax file (syntax/scheme.vim). Enable it by setting b:is_chicken=1
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 " and filetype=scheme.
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 " Only to be used on top of the Scheme syntax.
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 if !exists('b:did_scheme_syntax')
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 finish
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 endif
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 " Lighten parentheses.
13437
02b3f719eacb Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
17 hi! def link schemeParentheses Comment
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 " foo#bar
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 syn match schemeExtraSyntax /[^ #'`\t\n()\[\]"|;]\+#[^ '`\t\n()\[\]"|;]\+/
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 " ##foo#bar
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 syn match schemeExtraSyntax /##[^ '`\t\n()\[\]"|;]\+/
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 " Heredocs.
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 syn region schemeString start=/#<[<#]\s*\z(.*\)/ end=/^\z1$/
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 " Keywords.
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29 syn match schemeKeyword /#[!:][a-zA-Z0-9!$%&*+-./:<=>?@^_~#]\+/
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30 syn match schemeKeyword /[a-zA-Z0-9!$%&*+-./:<=>?@^_~#]\+:\>/
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
31
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
32 " C/C++ syntax.
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
33 let s:c = globpath(&rtp, 'syntax/cpp.vim', 0, 1)
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
34 if len(s:c)
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
35 exe 'syn include @c ' s:c[0]
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
36 syn region c matchgroup=schemeComment start=/#>/ end=/<#/ contains=@c
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
37 endif
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
38
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
39 syn keyword schemeSyntax define-record
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
40
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
41 syn keyword schemeLibrarySyntax declare
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
42 syn keyword schemeLibrarySyntax module
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
43 syn keyword schemeLibrarySyntax reexport
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
44 syn keyword schemeLibrarySyntax require-library
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
45
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
46 syn keyword schemeTypeSyntax -->
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
47 syn keyword schemeTypeSyntax ->
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
48 syn keyword schemeTypeSyntax :
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
49 syn keyword schemeTypeSyntax assume
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
50 syn keyword schemeTypeSyntax compiler-typecase
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
51 syn keyword schemeTypeSyntax define-specialization
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
52 syn keyword schemeTypeSyntax define-type
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
53 syn keyword schemeTypeSyntax the
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
54
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
55 syn keyword schemeExtraSyntax and-let*
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
56 syn keyword schemeExtraSyntax match
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
57 syn keyword schemeExtraSyntax match-lambda
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
58 syn keyword schemeExtraSyntax match-lambda*
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
59
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
60 syn keyword schemeSpecialSyntax define-compiler-syntax
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
61 syn keyword schemeSpecialSyntax define-constant
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
62 syn keyword schemeSpecialSyntax define-external
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
63 syn keyword schemeSpecialSyntax define-inline
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
64 syn keyword schemeSpecialSyntax foreign-code
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
65 syn keyword schemeSpecialSyntax foreign-declare
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
66 syn keyword schemeSpecialSyntax foreign-lambda
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
67 syn keyword schemeSpecialSyntax foreign-lambda*
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
68 syn keyword schemeSpecialSyntax foreign-primitive
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
69 syn keyword schemeSpecialSyntax foreign-safe-lambda
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
70 syn keyword schemeSpecialSyntax foreign-safe-lambda*
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
71 syn keyword schemeSpecialSyntax foreign-value
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
72
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
73 syn keyword schemeSyntaxSyntax begin-for-syntax
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
74 syn keyword schemeSyntaxSyntax define-for-syntax
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
75 syn keyword schemeSyntaxSyntax er-macro-transformer
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
76 syn keyword schemeSyntaxSyntax ir-macro-transformer
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
77 syn keyword schemeSyntaxSyntax require-library-for-syntax