Skip to content

Commit 95c8ef3

Browse files
committed
Merge branch 'sundbry/master'
Pull-request: wlangstroth#65 * sundbry/master: ftdetect: Support #lang at-exp chains Conflicts: ftdetect/racket.vim The differences in `g:racket_hash_lang_dict` caused conflicts. Keep my dict and the new regex.
2 parents c45942e + 906972c commit 95c8ef3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ftdetect/racket.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let g:racket_hash_lang_regexp = '^#lang\s\+\([^][)(}{[:space:]]\+\)'
1+
let g:racket_hash_lang_regexp = '^#lang\s\+\%\(\<at-exp\>\s\+\)\?\([^][)(}{[:space:]]\+\)'
22
let g:racket_hash_lang_dict = get(g:, 'racket_hash_lang_dict',
33
\ {
44
\ 'racket/base': 'racket',

test/at-exp.rkt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#lang at-exp racket
2+
3+
(define (bar)
4+
"BAR")
5+
6+
(define (foo)
7+
(displayln @~a{Foo is a @(bar)}))
8+
9+
(foo)

0 commit comments

Comments
 (0)