Lines Matching refs:line

18     if line("$") > 500
21 let nmax = line("$")
111 if match(getline(1, min([line("$"), 200])), '^@\(interface\|end\|class\)') > -1
128 " If the first line starts with # or ! it's probably a ch file.
129 " If a line has "main", "include", "//" or "/*" it's probably ch.
161 let line = getline(lnum)
162 if line =~ '^\s*[#{]'
165 elseif line !~ '^\s*$'
166 " Not a blank line, not a comment, and not a block start,
176 let lines = getline(1, min([line("$"), 100]))
195 let lines = getline(1, min([line("$"), 100]))
211 while n < 100 && n <= line("$")
225 while n < 10 && n <= line("$")
242 while n < 50 && n <= line("$")
254 " Cproto files have a comment in the first line and a function prototype in
255 " the second line, it always ends in ";". Indent files may also have
257 " IDL files can have a single ';' in the second line, require at least one
278 let line = getline(n)
279 if line =~ '^\s*/\*'
285 if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|//\)'
289 if line =~ '^\s*\%(#\|%!\)' || line =~ '^\s*unwind_protect\>' ||
290 \ line =~ '\%(^\|;\)\s*' .. octave_block_terminators
295 if line =~ '^\s*%'
299 if line =~ '^\s*(\*'
303 if line =~ '^\c\s*\(\(type\|var\)\>\|--\)'
324 let line = getline(n)
325 if line =~ '^\s*\(%\|//\)' || line =~ '^\*'
329 if line =~ '^\s*#'
351 let line = getline(n)
352 if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)'
365 " recognize Prolog by specific text in the first non-empty line
422 while lnum <= 10 && lnum < line('$')
423 let line = getline(lnum)
424 if line =~ '^\s*;' || line =~ '^\*'
427 elseif line !~ '^\s*$' || line =~ '^/\*'
428 " Not an empty line: Doesn't look like valid assembly code.
449 while lnum <= 10 && lnum < line('$')
450 let line = getline(lnum)
451 if line =~ s:ft_pascal_comments || line =~? s:ft_pascal_keywords
454 elseif line !~ '^\s*$' || line =~ '^/\*'
455 " Not an empty line: Doesn't look like valid Pascal code.
468 let line = getline(nextnonblank(1))
469 if line =~ s:ft_pascal_comments || line =~? s:ft_pascal_keywords
478 let max = line("$") > 50 ? 50 : line("$")
513 for lnum in range(1, min([line("$"), 20]))
514 let line = getline(lnum)
515 if line =~ '^\s*\(#\|dnl\)'
518 elseif line =~ '^\s*;'
587 while l < 20 && l < line("$") && getline(l) =~ '^\s*\(#\|$\)'
591 if l < line("$") && getline(l) =~ '\s*exec\s' && getline(l - 1) =~ '^\s*#.*\\$'
592 " Found an "exec" line after a comment with continuation
638 for line in config_lines
639 if line =~ s:ft_rules_udev_rules_pattern
640 let udev_rules = substitute(line, s:ft_rules_udev_rules_pattern, '\1', "")
660 " If the first line starts with '#' and contains 'perl' it's probably a Perl
686 " 1. Check the first line of the file for "%&<format>".
704 " Save position, go to the top of the file, find first non-comment line.
743 while n < 100 && n <= line("$")
744 let line = getline(n)
746 let is_docbook4 = line =~ '<!DOCTYPE.*DocBook'
747 let is_docbook5 = line =~ ' xmlns="http://docbook.org/ns/docbook"'
758 if line =~ 'xmlns:xbl="http://www.mozilla.org/xbl"'
769 while n < 100 && n <= line("$")
770 let line = getline(n)
771 if line =~ '^\s*%'
786 while lnum <= 5 && lnum < line('$')