summary refs log tree commit diff stats
path: root/tests/template/ttempl5.nim
blob: 1f237878042863a9e4f9433c0855e80fe5badc5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import mtempl5

echo templ()

#bug #892

proc parse_to_close(value: string, index: int, open='(', close=')'): int =
    discard

# Call parse_to_close
template get_next_ident: stmt =
    discard "{something}".parse_to_close(0, open = '{', close = '}')

get_next_ident()


#identifier expected, but found '(open|open|open)'