Searched +refs:indent +refs:line +refs:to (Results 1 - 25 of 134) sorted by relevance

123456

/macosx-10.10/vim-55/runtime/indent/
H A Dconfig.vim1 " Vim indent file
5 " TODO: how about nested [()]'s in one line
8 " Only load this indent file when no other was loaded.
13 runtime! indent/sh.vim " will set b:did_indent
24 " get the offset (indent) of the end of the match of 'regexp' in 'line'
25 function s:GetOffsetOf(line, regexp)
26 let end = matchend(a:line, a:regexp)
30 if a:line[i] != "\t"
41 " Find a non-blank line abov
[all...]
H A Dada.vim2 " Description: Vim Ada indent file
13 " $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/indent/ada.vim $
17 " 05.11.2006 MK Bram suggested to save on spaces
19 " Help Page: ft-vim-indent
22 " Verify handling of multi-line exprs. and recovery upon the final ';'.
24 " Combine the two large block-indent functions into one?
27 " Only load this indent file when no other was loaded.
51 " Try to find indent of the block we're in
52 " prev_indent = the previous line'
[all...]
H A Ddtd.vim1 " Vim indent file
17 " TODO: Needs to be adjusted to stop at [, <, and ].
50 function s:indent_to_innermost_parentheses(line, end)
55 let [token, end] = s:lex(a:line, end, '^\%([(),|]\|[A-Za-z0-9_-]\+\)[?*+]\=')
65 return [parentheses[-1] - strridx(a:line, "\n", parentheses[-1]), end]
75 " From here, depending on what follows immediately after, parse to
76 " where we���re at to determine what to do.
78 return indent(
[all...]
H A Dmma.vim1 " Vim indent file
6 " http://members.wolfram.com/layland/vim/indent/mma.vim
9 " Empty .m files will automatically be presumed to be Matlab files
15 " o steve hacked this out of a random indent file in the Vim 6.1
18 " Only load this indent file when no other was loaded.
26 setlocal nosi "turn off smart indent so we don't over analyze } blocks
34 " Hit the start of the file, use zero indent.
39 " Find a non-blank line above the current line.
43 let ind = indent(
[all...]
H A Dawk.vim3 " Awk indent script. It can handle multi-line statements and expressions.
4 " It works up to the point where the distinction between correct/incorrect
24 " 29-04-2002 Fixed problems in function headers and max line width
25 " Added support for two-line if's without curly braces
27 " Only load this indent file when no other was loaded.
35 " Mmm, copied from the tcl indent program. Is this okay?
44 " first to get out of the function as soon as possible, thereby reducing the
49 " Find previous line and get it's indentation
55 let ind = indent( prev_linen
[all...]
H A Dsqlanywhere.vim1 " Vim indent file
20 " it, this can leave the indent hanging to the right one too many.
22 " Only load this indent file when no other was loaded.
37 " you would type at the BEGINNING of a line
39 " These keywords are something that would trigger an indent LEFT, not
40 " an indent right, since the SQLBlockStart is used for those keywords
53 " These are typically words that start a line.
54 " IS is excluded, since it is difficult to determine when the
64 " The indent leve
[all...]
H A Docaml.vim1 " Vim indent file
6 " URL: http://www.ocaml.info/vim/indent/ocaml.vim
7 " Last Change: 2005 Jun 25 - Fixed multiple bugs due to 'else\nreturn ind' working
8 " 2005 May 09 - Added an option to not indent OCaml-indents specially (MM)
11 " Only load this indent file when no other was loaded.
57 " Indent for ';;' to match multiple 'let'
60 let old = indent(a:lnum)
62 let old = indent(llet)
75 return indent(searchpai
[all...]
H A Ddylan.vim1 " Vim indent file
7 " Only load this indent file when no other was loaded.
15 " Define the appropriate indent function but only once
22 " Get the line to be indented
30 "Find the previous non-blank line
32 "Use zero indent at the top of the file
38 let ind = indent(lnum)
41 " If previous line was a comment, use its indent
[all...]
H A Doccam.vim1 " Vim indent file
6 " Only load this indent file when no other was loaded.
13 " Set the occam indent function
15 " Indent after new line and after initial colon
25 " Define carriage return indent
31 " Define colon indent
43 " Auxiliary function to get the correct indent for a line of occam code
50 " Get reference line numbe
[all...]
H A Dmake.vim1 " Vim indent file
25 " TODO: This needs to be a lot more restrictive in what it matches.
30 function s:remove_continuation(line)
31 return substitute(a:line, s:continuation_rx, "", "")
49 return indent(prev_lnum)
61 " TODO: OK, this might be a continued shell command, so perhaps indent
63 " should be using indent/sh.vim somehow.
66 " return indent(prev_lnum) + 2
69 return indent(prev_lnum) + &sw
74 let line
[all...]
H A Dmatlab.vim1 " Matlab indent file
6 " Only load this indent file when no other was loaded.
24 " Give up if this line is explicitly joined.
29 " Search backwards for the first non-empty line.
36 " This is the first non-empty line, use zero indent.
40 let curind = indent(plnum)
42 " If the current line is a stop-block statement...
44 " See if this line does not follow the line righ
[all...]
H A Dvhdl.vim1 " VHDL indent ('93 syntax)
8 " only load this indent file when no other was loaded
14 " setup indent options for local VHDL buffer
30 " option to disable alignment of generic/port mappings
35 " option to disable alignment of right-hand side assignment "<=" statements
40 " only define indent function once
46 " store current line & string
50 " find previous line that is not a comment
59 " default indent starts as previous non-comment line'
[all...]
H A Dperl6.vim1 " Vim indent file
9 " Adapted from Perl indent file by Rafael Garcia-Suarez <rgarciasuarez@free.fr>
29 " Only load this indent file when no other was loaded.
40 " we reset it first because the Perl 5 indent file might have been loaded due
41 " to a .pl/pm file extension, and indent files don't clean up afterwards
59 " Get the line to be indented
62 " Indent POD markers to column 0
72 " Get current syntax item at the line'
[all...]
H A Druby.vim1 " Vim indent file
12 " Only load this indent file when no other was loaded.
48 " Expression used to check whether we should skip a match with searchpair().
50 \ "synIDattr(synID(line('.'),col('.'),1),'name') =~ '".s:syng_strcom."'"
52 " Regex used for words that, at the start of a line, add a level of indent.
59 " Regex used for words that, at the start of a line, remove a level of indent.
65 " TODO: the do here should be restricted somewhat (only at end of line)?
87 " TODO: this needs to dea
[all...]
H A Dpython.vim1 " Vim indent file
7 " Only load this indent file when no other was loaded.
27 let s:maxoff = 50 " maximum number of lines to look backwards for ()
31 " If this line is explicitly joined: If the previous line was also joined,
32 " line it up with that one, otherwise add two 'shiftwidth'
35 return indent(a:lnum - 1)
37 return indent(a:lnum - 1) + (exists("g:pyindent_continue") ? eval(g:pyindent_continue) : (&sw * 2))
40 " If the start of the line is in a string don't change the indent
[all...]
H A Dprolog.vim7 " checking with respect to syntax highlighting
11 " Only load this indent file when no other was loaded.
28 " Find a non-blank line above the current line.
30 " Hit the start of the file, use zero indent.
34 let line = getline(v:lnum)
37 let ind = indent(pnum)
38 " Previous line was comment -> use previous line's indent
[all...]
H A Dchaiscript.vim1 " Vim indent file
5 " Only load this indent file when no other was loaded.
20 " Find a non-blank line above the current line.
23 " Hit the start of the file, use zero indent.
30 let ind = indent(lnum)
39 " to keep it balanced
H A Dpov.vim1 " Vim indent file
5 " URI: http://trific.ath.cx/Ftp/vim/indent/pov.vim
7 " Only load this indent file when no other was loaded.
24 " Counts matches of a regexp <rexp> in line number <line>.
27 function! s:MatchCount(line, rexp)
28 let str = getline(a:line)
33 if i >= 0 && synIDattr(synID(a:line, i, 0), "name") !~? "string\|comment"
40 " The main function. Returns indent amount.
43 if synIDattr(synID(v:lnum, indent(
[all...]
H A Dperl.vim1 " Vim indent file
22 " Only load this indent file when no other was loaded.
47 " Get the line to be indented
50 " Indent POD markers to column 0
60 " Get current syntax item at the line's first char
68 return indent(v:lnum)
71 " Indent end-of-heredocs markers to column 0
73 " Assumes that an end-of-heredoc marker matches \I\i* to avoid
85 " Now get the indent o
[all...]
H A Dsdl.vim1 " Vim indent file
6 " Shamelessly stolen from the Vim-Script indent file
8 " Only load this indent file when no other was loaded.
25 " Find a non-blank line above the current line.
28 " At the start of the file use zero indent.
33 let ind = indent(lnum)
36 " Add a single space to comments which use asterisks
56 " Subtract a 'shiftwidth' on on end (uncompleted line)
64 let ind = indent(searchpai
[all...]
H A Dcdl.vim20 " it scans 'line' first, and then the previos lines
21 fun! CdlAsignment(lnum, line)
24 let line = a:line
26 " line without members [a] of [b]:[c]...
29 " keywords that help to decide
30 let inicio = matchend(line, '\c\<\(expr\|\a*if\|and\|or\|not\|else\|then\|memberis\|\k\+of\)\>\|[<>;]', inicio)
37 let f = line[inicio-1] =~? '[en;]' || strpart(line, inicio-4, 4) =~? 'ndif\|expr'
40 let line
[all...]
H A Dpascal.vim1 " Vim indent file
51 return indent( a:line_num )
56 let indnt = indent( prev_codeline_num )
64 " go on column 0. Make sure that the ^\s* is followed by \( to make
65 " ORs work properly, and not include the start of line (this must
68 " separator. This is one case where we do indent comment lines.
92 " If the PREVIOUS LINE contained these items, the current line is
104 " If the previous line was indenting...
106 " then indent.
109 " need to alig
[all...]
H A Dsml.vim1 " Vim indent file
9 " OCaml URL: http://www.oefai.at/~markus/vim/indent/ocaml.vim
10 " Last Change: 2003 Jan 04 - Adapted to SML
15 " Only load this indent file when no other was loaded.
59 " Indent for ';;' to match multiple 'let'
62 let old = indent(a:lnum)
64 let old = indent(llet)
77 " return indent(searchpair(a:pstart, a:pmid, a:pend, 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment"'))
78 let lno = searchpair(a:pstart, a:pmid, a:pend, 'bW', 'synIDattr(synID(line("
[all...]
/macosx-10.10/WebInspectorUI-7600.1.17/UserInterface/External/CodeMirror/
H A Dcomment.js26 var from = ranges[i].from(), to = ranges[i].to();
27 if (from.line >= minLine) continue;
28 if (to.line >= minLine) to = Pos(minLine, 0);
29 minLine = from.line;
31 if (cm.uncomment(from, to)) mode = "un";
32 else { cm.lineComment(from, to); mode = "line"; }
[all...]
/macosx-10.10/cups-408/cups/notifier/
H A Dmailto.c20 * pipe_sendmail() - Open a pipe to sendmail...
41 char mailtoSMTPServer[1024]; /* SMTP server to use */
42 char mailtoSendmail[1024]; /* Sendmail program to use */
49 void email_message(const char *to, const char *subject,
52 cups_file_t *pipe_sendmail(const char *to);
53 void print_attributes(ipp_t *ipp, int indent);
61 main(int argc, /* I - Number of command-line arguments */
62 char *argv[]) /* I - Command-line arguments */
98 * Validate command-line options...
128 * Get the reply-to addres
210 email_message(const char *to, const char *subject, const char *text) argument
400 char line[1024], /* Line from file */ local
495 pipe_sendmail(const char *to) argument
502 line[1024], /* Sendmail command + args */ local
611 print_attributes(ipp_t *ipp, int indent) argument
[all...]

Completed in 141 milliseconds

123456