blob: 93bd38fbfffacd453958ce7b070450f213ebbe23 [file] [log] [blame]
Bram Moolenaar9b03d3e2022-08-30 20:26:34 +01001" Vim indent file
2" Language: Racket
3" Maintainer: D. Ben Knoble <ben.knoble+github@gmail.com>
4" Previous Maintainer: Will Langstroth <will@langstroth.com>
5" URL: https://github.com/benknoble/vim-racket
6" Last Change: 2022 Aug 12
7
8if exists("b:did_indent")
9 finish
10endif
11let b:did_indent = 1
12
13setlocal lisp autoindent nosmartindent
14
15setlocal lispwords+=module,module*,module+,parameterize,let-values,let*-values,letrec-values,local
16setlocal lispwords+=define/contract
17setlocal lispwords+=λ
18setlocal lispwords+=with-handlers
19setlocal lispwords+=define-values,opt-lambda,case-lambda,syntax-rules,with-syntax,syntax-case,syntax-parse
20setlocal lispwords+=define-for-syntax,define-syntax-parser,define-syntax-parse-rule,define-syntax-class,define-splicing-syntax-class
21setlocal lispwords+=define-signature,unit,unit/sig,compund-unit/sig,define-values/invoke-unit/sig
22setlocal lispwords+=define-opt/c,define-syntax-rule
23setlocal lispwords+=define-test-suite
24setlocal lispwords+=struct
25setlocal lispwords+=with-input-from-file,with-output-to-file
26
27" Racket OOP
28" TODO missing a lot of define-like forms here (e.g., define/augment, etc.)
29setlocal lispwords+=class,class*,mixin,interface,class/derived
30setlocal lispwords+=define/public,define/pubment,define/public-final
31setlocal lispwords+=define/override,define/overment,define/override-final
32setlocal lispwords+=define/augment,define/augride,define/augment-final
33setlocal lispwords+=define/private
34
35" kanren
36setlocal lispwords+=fresh,run,run*,project,conde,condu
37
38" loops
39setlocal lispwords+=for,for/list,for/fold,for*,for*/list,for*/fold,for/or,for/and,for*/or,for*/and
40setlocal 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
41setlocal lispwords+=for/async
42setlocal lispwords+=for/set,for*/set
43setlocal lispwords+=for/first,for*/first
44
45setlocal lispwords+=match,match*,match/values,define/match,match-lambda,match-lambda*,match-lambda**
46setlocal lispwords+=match-let,match-let*,match-let-values,match-let*-values
47setlocal lispwords+=match-letrec,match-define,match-define-values
48
49setlocal lispwords+=let/cc,let/ec
50
51" qi
52setlocal lispwords+=define-flow,define-switch,flow-lambda,switch-lambda,on,switch,π,λ01
53setlocal lispwords+=define-qi-syntax,define-qi-syntax-parser,define-qi-syntax-rule
54
55" gui-easy
56setlocal lispwords+=if-view,case-view,cond-view,list-view,dyn-view
57setlocal lispwords+=case/dep
58setlocal lispwords+=define/obs
59
60let b:undo_indent = "setlocal lisp< ai< si< lw<"