annotate runtime/indent/racket.vim @ 34359:0447bf3a88a5 v9.1.0110

patch 9.1.0110: filetype: add 'Config.in' filetype detection Commit: https://github.com/vim/vim/commit/5f20f050efed3431beaf85739f0113e9ef0abd8e Author: Brandon Maier <brandon.maier@collins.com> Date: Wed Feb 14 22:30:06 2024 +0100 patch 9.1.0110: filetype: add 'Config.in' filetype detection The 'Config.in' file type is for Buildroot configuration files. Buildroot Config.in files use the same Kconfig backend as the Linux kernel's Kconfig files. Buildroot also has other filename variants that follow "Config.in.*", they are used to distinguish multiple Config.in files in the same directory. See https://buildroot.org/downloads/manual/manual.html#_literal_config_in_literal_file closes: #14038 Signed-off-by: Brandon Maier <brandon.maier@collins.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 14 Feb 2024 22:45:02 +0100
parents 93b691c81dc0
children 3bae991a240b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29996
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim indent file
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Racket
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: D. Ben Knoble <ben.knoble+github@gmail.com>
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Previous Maintainer: Will Langstroth <will@langstroth.com>
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 " URL: https://github.com/benknoble/vim-racket
34252
93b691c81dc0 runtime(racket): add missing space to b:undo_indent var (#13945)
Christian Brabandt <cb@256bit.org>
parents: 34243
diff changeset
6 " Last Change: 2024 Jan 31
29996
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 if exists("b:did_indent")
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 finish
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 endif
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 let b:did_indent = 1
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 setlocal lisp autoindent nosmartindent
33956
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
14 if has('vim9script')
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
15 setlocal indentexpr=racket#Indent() lispoptions+=expr:1
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
16 endif
29996
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
33956
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
18 setlocal lispwords+=module,module*,module+,parameterize,parameterize*,let-values,let*-values,letrec-values,local
29996
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 setlocal lispwords+=define/contract
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 setlocal lispwords+=λ
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 setlocal lispwords+=with-handlers
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 setlocal lispwords+=define-values,opt-lambda,case-lambda,syntax-rules,with-syntax,syntax-case,syntax-parse
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 setlocal lispwords+=define-for-syntax,define-syntax-parser,define-syntax-parse-rule,define-syntax-class,define-splicing-syntax-class
33956
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
24 setlocal lispwords+=define-syntax-parameter,syntax-parameterize
29996
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 setlocal lispwords+=define-signature,unit,unit/sig,compund-unit/sig,define-values/invoke-unit/sig
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 setlocal lispwords+=define-opt/c,define-syntax-rule
33956
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
27 setlocal lispwords+=define-test-suite,test-case
29996
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 setlocal lispwords+=struct
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 setlocal lispwords+=with-input-from-file,with-output-to-file
33956
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
30 setlocal lispwords+=begin,begin0
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
31 setlocal lispwords+=place
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
32 setlocal lispwords+=cond
29996
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 " Racket OOP
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 " TODO missing a lot of define-like forms here (e.g., define/augment, etc.)
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 setlocal lispwords+=class,class*,mixin,interface,class/derived
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 setlocal lispwords+=define/public,define/pubment,define/public-final
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 setlocal lispwords+=define/override,define/overment,define/override-final
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 setlocal lispwords+=define/augment,define/augride,define/augment-final
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 setlocal lispwords+=define/private
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 " kanren
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 setlocal lispwords+=fresh,run,run*,project,conde,condu
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 " loops
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 setlocal lispwords+=for,for/list,for/fold,for*,for*/list,for*/fold,for/or,for/and,for*/or,for*/and
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 setlocal lispwords+=for/hash,for/hasheq,for/hasheqv,for/sum,for/flvector,for*/flvector,for/vector,for*/vector,for*/sum,for*/hash,for*/hasheq,for*/hasheqv
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 setlocal lispwords+=for/async
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 setlocal lispwords+=for/set,for*/set
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
50 setlocal lispwords+=for/first,for*/first
33956
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
51 setlocal lispwords+=for/last,for*/last
e0535b3b9d77 runtime(racket): update Racket runtime files (#13693)
Christian Brabandt <cb@256bit.org>
parents: 29996
diff changeset
52 setlocal lispwords+=for/stream,for*/stream
29996
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 setlocal lispwords+=match,match*,match/values,define/match,match-lambda,match-lambda*,match-lambda**
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55 setlocal lispwords+=match-let,match-let*,match-let-values,match-let*-values
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56 setlocal lispwords+=match-letrec,match-define,match-define-values
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
57
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
58 setlocal lispwords+=let/cc,let/ec
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
59
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
60 " qi
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
61 setlocal lispwords+=define-flow,define-switch,flow-lambda,switch-lambda,on,switch,π,λ01
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
62 setlocal lispwords+=define-qi-syntax,define-qi-syntax-parser,define-qi-syntax-rule
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
63
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
64 " gui-easy
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
65 setlocal lispwords+=if-view,case-view,cond-view,list-view,dyn-view
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
66 setlocal lispwords+=case/dep
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
67 setlocal lispwords+=define/obs
e37754a13778 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
68
34252
93b691c81dc0 runtime(racket): add missing space to b:undo_indent var (#13945)
Christian Brabandt <cb@256bit.org>
parents: 34243
diff changeset
69 let b:undo_indent = "setlocal lisp< ai< si< lw<" .. (has('vim9script') ? ' indentexpr< lispoptions<' : '')