Lines Matching refs:indent

1 " Vim indent file
81 return indent(v:lnum - 1)
85 let indent = indent('.')
90 return indent + shiftwidth()
94 " 'comments' and 'autoindent'. Otherwise, indent to the first lines level.
98 return indent
103 " Check for element name. If none exists, indent one level.
106 return indent + shiftwidth()
110 " whether the start or end tag may be omitted. If nothing is found, indent
119 return indent + shiftwidth()
127 return indent
134 " indentation. Otherwise, we’ll indent to the innermost parentheses not yet
151 return indent
154 …return getline(v:lnum) =~ '^\s*>' || count(values(seen), 0) == 0 ? indent : (indent + shiftwidth())
160 return indent
170 " Check for element name. If none exists, indent one level.
173 return indent + shiftwidth()
178 " Check for attribute name. If none exists, indent one level, unless the
179 " current line is a lone “>”, in which case we indent to the same level
181 " actually hit the end of the attribute list, in which case we indent to
186 return getline(v:lnum) =~ '^\s*>' ? indent : (indent + shiftwidth())
188 return indent
191 " Check for attribute value declaration. If none exists, indent two
193 " parentheses and indent to the innermost one if we don’t reach the end
200 return indent + shiftwidth() * 2
203 " for the actual value. If it doesn’t exist, indent three levels.
207 return indent + shiftwidth() * 3
218 " Finally look for the attribute’s default value. If non exists, indent
222 return indent + shiftwidth() * 2
224 " We need to look for the fixed value. If non exists, indent three
228 return indent + shiftwidth() * 3
233 " Check for entity name. If none exists, indent one level. Otherwise, if
236 " again, if none exists, indent one level.
239 return indent + shiftwidth()
243 return indent + shiftwidth()
247 " Now check for the entity value. If none exists, indent one level. If it
248 " does exist, indent to same level as first line, as we’re now done with
255 " keyword and the actual notation name. For the public ID and URI, indent
257 " indent one level. Otherwise, if the actual notation name doesn’t exist,
258 " indent two level. If it does, indent to same level as first line, as
262 return indent + shiftwidth()
266 return indent + shiftwidth() * 2
272 return indent + shiftwidth() * 2
278 return indent + shiftwidth()
282 return name == "" ? (indent + shiftwidth() * 2) : indent
284 return indent
287 " Check for notation name. If none exists, indent one level.
290 return indent + shiftwidth()
293 " Now check for the external ID. If none exists, indent one level.
296 return indent + shiftwidth()
300 return indent + shiftwidth() * 2
307 return getline(v:lnum) =~ '^\s*>' ? indent : (indent + shiftwidth() * 2)
309 return indent
314 return indent
318 " just as well to let the user decide how to indent them (perhaps extending