Lines Matching refs:when
24 " Only load this indent file when no other was loaded
33 setlocal indentkeys+=0=end,0=of,0=catch,0=after,0=when,0=),0=],0=},0=>>
90 " Example (when tabstop == 4):
458 " This function is called when the parser encounters a syntax error.
477 " This function is called when the parser encounters an unexpected token,
571 " - may not precede 'catch': fun if of receive when
591 " This function is called when a begin-type element ('begin', 'case',
620 " This function is called when a begin-type element ('begin', 'case', '[',
621 " '<<', etc.) is found, and in some cases when 'after' and 'when' is found.
662 " This function is called when we hit the beginning of a file or an
663 " end-of-clause token -- i.e. when we found the beginning of the current
666 " If the stack contains an '->' or 'when', this means that we can return
680 if !empty(a:stack) && a:stack[0] ==# 'when'
681 call s:Log(' BeginningOfClauseFound: "when" found in stack')
684 call s:Log(' Stack is ["when"], so LTI is in a guard -> return')
863 \ (empty(stack) || stack ==# ['when'] || stack ==# ['->'] ||
882 " % stack == ['when']
883 " receive stored_vcol when
889 " stack = ['when'] => LTI is a guard
898 elseif stack == ['when']
911 " stack = ['when'] => LTI is in a guard
923 " when we reached these tokens, and the stack already had
926 " This way when we reach case/try/receive (i.e. now),
952 elseif stack[0] ==# 'when'
985 " stack = ['when'] => LTI is in a guard
997 elseif stack[0] ==# 'when'
1216 elseif index([';', '->', 'when', 'end', 'after', 'catch'],
1222 " - If the stack top is an '->' or a 'when', then we
1228 " modify it. This way when we reach case/try/receive,
1245 elseif index(['->', 'when', 'end', 'after', 'catch'], stack[0]) != -1
1250 " - If the stack top is a 'when', then we should keep
1255 " modify it. This way when we reach case/try/receive,
1262 elseif token ==# 'when'
1275 " when A,
1282 " when
1286 elseif index(['->', 'when', 'end', 'after', 'catch'], stack[0]) != -1
1288 " - If the stack top is another 'when', then one 'when' is
1290 " - If the stack top is an '->' or a 'when', then we
1296 " modify it. This way when we reach case/try/receive,
1314 if empty(stack) || stack[0] ==# '->' || stack[0] ==# 'when'
1320 " modify it. This way when we reach case/try/receive,
1337 if empty(stack) || stack[0] ==# '->' || stack[0] ==# 'when'
1340 call s:Log(' Misc token when the stack is empty or has "->" ' .
1445 if currline =~# '^\s*when\>'