Lines Matching refs:length
84 {type: 'local', type_bufnr: bufnr, id: 0, col: 1, end: 1, length: 0, start: 1},
85 {type: 'global', type_bufnr: 0, id: 0, col: 1, end: 1, length: 0, start: 1},
88 {lnum: 1, id: 0, col: 1, type_bufnr: bufnr, end: 1, type: 'local', length: 0, start: 1},
91 {lnum: 1, id: 0, col: 1, type_bufnr: 0, end: 1, type: 'global', length: 0, start: 1},
119 call prop_add(1, 1, {'length': 3, 'id': 11, 'type': 'one'})
120 eval 1->prop_add(5, {'length': 3, 'id': 12, 'type': 'two'})
121 call prop_add(1, 9, {'length': 5, 'id': 13, 'type': 'three'})
122 call prop_add(1, 1, {'length': 13, 'id': 14, 'type': 'whole'})
127 \ #{type_bufnr: 0, col: 1, length: 13, id: 14, type: 'whole', start: 1, end: 1},
128 \ #{type_bufnr: 0, col: 1, length: 3, id: 11, type: 'one', start: 1, end: 1},
129 \ #{type_bufnr: 0, col: 5, length: 3, id: 12, type: 'two', start: 1, end: 1},
130 \ #{type_bufnr: 0, col: 9, length: 5, id: 13, type: 'three', start: 1, end: 1},
140 call prop_add(1, 5, {'type': 'prop_name', 'id': 10, 'length': 3})
142 call prop_add(5, 4, {'type': 'prop_name', 'id': 12, 'length': 1})
145 \ #{type_bufnr: 0, lnum: 1, col: 5, length: 3, id: 10, type: 'prop_name', start: 1, end: 1},
147 \ #{type_bufnr: 0, lnum: 5, col: 4, length: 1, id: 12, type: 'prop_name', start: 1, end: 1}
162 unlet result.length
174 unlet result.length
177 unlet result.length
195 if !has_key(exp, "length")
196 unlet result.length
210 if !has_key(expected[i], "length")
211 unlet result.length
249 call prop_add(5, 4, {'type': 'prop_name', 'length': 1})
250 …call assert_equal(#{lnum: 5, id: 0, col: 4, type_bufnr: 0, end: 1, type: 'prop_name', length: 1, s…
264 prop_add(lnum, col, {type: 'misspell', length: 2})
268 …var expected = {type_bufnr: 0, lnum: 1, id: 0, col: 14, end: 1, type: 'misspell', length: 2, start…
282 \ #{type_bufnr: 0, id: 0, lnum: 1, col: 4, type: 'test', length: 0, start: 1, end: 1},
313 call assert_fails("call prop_add(10, 1, {'length': 1, 'id': 14, 'type': 'whole'})", 'E966:')
314 call assert_fails("call prop_add(1, 22, {'length': 1, 'id': 14, 'type': 'whole'})", 'E964:')
323 " Prop without length or end column is zero length
327 let expected = [#{type_bufnr: 0, col: 5, length: 0, type: 'included', id: 0, start: 1, end: 1}]
332 let expected = [#{type_bufnr: 0, col: 5, length: 2, type: 'included', id: 0, start: 1, end: 1}]
350 \ length: 2, start: 1}], prop_list(1))
352 \ length: 2, start: 1}], prop_list(2))
354 \ length: 7, start: 1}], prop_list(3))
356 \ length: 5, start: 0}], prop_list(4))
403 call prop_add(1, 6, {'length': 2, 'id': 11, 'type': 'three'})
405 …call insert(props, #{type_bufnr: 0, col: 6, length: 2, id: 11, type: 'three', start: 1, end: 1}, 3)
442 call prop_add(1, 2, {'length': 3, 'id': 11, 'type': 'one'})
443 call prop_add(1, 8, {'length': 3, 'id': 12, 'type': 'two'})
445 \ #{type_bufnr: 0, col: 2, length: 3, id: 11, type: 'one', start: 1, end: 1},
446 \ #{type_bufnr: 0, col: 8, length: 3, id: 12, type: 'two', start: 1, end: 1},
461 call prop_add(lnum, 1, {'length': 3, 'id': 11, 'type': 'one', 'bufnr': bufnr})
462 call prop_add(lnum, 5, {'length': 3, 'id': 12, 'type': 'two', 'bufnr': bufnr})
463 call prop_add(lnum, 11, {'length': 3, 'id': 13, 'type': 'three', 'bufnr': bufnr})
467 \ #{type_bufnr: 0, col: 1, length: 3, id: 11, type: 'one', start: 1, end: 1},
468 \ #{type_bufnr: 0, col: 5, length: 3, id: 12, type: 'two', start: 1, end: 1},
469 \ #{type_bufnr: 0, col: 11, length: 3, id: 13, type: 'three', start: 1, end: 1},
597 let exp_first[0].length = 1
601 let expected[0].length = 2
691 let expected_props[0].length += 1
692 let expected_props[1].length += 1
699 let expected_props[0].length -= 2
700 let expected_props[2].length -= 1
701 let expected_props[3].length -= 1
714 let expected_props[0].length = 5
720 let new_props[0].length = 6
723 let new_props[1].length = 1
735 call prop_add(2, 2, {'length': 2, 'type': 'comment'})
736 let expect = #{type_bufnr: 0, col: 2, length: 2, type: 'comment', start: 1, end: 1, id: 0}
751 call prop_add(2, 2, {'length': 5, 'type': 'comment'})
753 let expect.length = 5
758 let expect.length = 2
770 call prop_add(1, 2, {'length': 1, 'type': 'comment'})
772 call prop_add(5, 2, {'length': 1, 'type': 'comment'})
782 let expect1 = #{type_bufnr: 0, col: 3, length: 6, type: 'comment', start: 1, end: 0, id: 0}
784 let expect2 = #{type_bufnr: 0, col: 1, length: 10, type: 'comment', start: 0, end: 0, id: 0}
786 let expect3 = #{type_bufnr: 0, col: 1, length: 4, type: 'comment', start: 0, end: 1, id: 0}
793 let expect1.length = 8
796 let expect3.length = 9
804 let expect_short = #{type_bufnr: 0, col: 2, length: 1, type: 'comment', start: 1, end: 1, id: 0}
806 let expect2 = #{type_bufnr: 0, col: 4, length: 4, type: 'comment', start: 1, end: 0, id: 0}
810 let expect2 = #{type_bufnr: 0, col: 1, length: 6, type: 'comment', start: 1, end: 0, id: 0}
816 let expect3 = #{type_bufnr: 0, col: 1, length: 6, type: 'comment', start: 0, end: 0, id: 0}
818 let expect4 = #{type_bufnr: 0, col: 1, length: 4, type: 'comment', start: 0, end: 1, id: 0}
828 let expect2 = #{type_bufnr: 0, col: 4, length: 4, type: 'comment', start: 1, end: 0, id: 0}
832 let expect3 = #{type_bufnr: 0, col: 1, length: 9, type: 'comment', start: 0, end: 0, id: 0}
881 call prop_add(3, 1, {'length': 5, 'type': 'prop'})
899 \ 'length': len('two'),
927 let expected = [#{type_bufnr: 0, col: 3, length: 2, id: 0, type: 'comment', start: 1, end: 1}]
933 let expected[0].length = 3
936 let expected[0].length = 2
942 let expected[0].length = 1
945 let expected[0].length = 2
958 let expected[0].length = 3
962 let expected[0].length = 1
965 let expected[0].length = 2
970 call prop_add(1, 12, {'length': 3, 'type': 'comment'})
971 let expected = [#{type_bufnr: 0, col: 12, length: 3, id: 0, type: 'comment', start: 1, end: 1} ]
984 call prop_add(1, 12, {'length': 3, 'type': 'comment'})
985 let expected = [#{type_bufnr: 0, col: 12, length: 3, id: 0, type: 'comment', start: 1, end: 1} ]
996 let expected[0].length += 1
1009 " zero length property
1011 let expected = [#{type_bufnr: 0, col: 3, length: 0, id: 0, type: 'comment', start: 1, end: 1} ]
1016 let expected = [#{type_bufnr: 0, col: 2, length: 0, id: 0, type: 'comment', start: 1, end: 1} ]
1021 let expected = [#{type_bufnr: 0, col: 2, length: 0, id: 0, type: 'comment', start: 1, end: 1} ]
1026 let expected = [#{type_bufnr: 0, col: 1, length: 0, id: 0, type: 'comment', start: 1, end: 1} ]
1066 \ "call prop_add(2, 9, {'length': 3, 'type': 'number'})",
1067 \ "call prop_add(2, 24, {'length': 4, 'type': 'number'})",
1068 \ "call prop_add(3, 3, {'length': 2, 'type': 'number'})",
1069 \ "call prop_add(3, 7, {'length': 2, 'type': 'start'})",
1070 \ "call prop_add(3, 11, {'length': 2, 'type': 'end'})",
1071 \ "call prop_add(3, 15, {'length': 2, 'type': 'both'})",
1072 \ "call prop_add(4, 6, {'length': 3, 'type': 'background'})",
1073 \ "call prop_add(4, 12, {'length': 10, 'type': 'backgroundcomb'})",
1074 \ "call prop_add(4, 17, {'length': 5, 'type': 'error'})",
1075 \ "call prop_add(5, 7, {'length': 4, 'type': 'long'})",
1076 \ "call prop_add(6, 1, {'length': 8, 'type': 'long'})",
1077 \ "call prop_add(8, 1, {'length': 1, 'type': 'long'})",
1078 \ "call prop_add(8, 11, {'length': 4, 'type': 'long'})",
1114 \ "call prop_add(1, 11, {'length': 3, 'type': 'search'})",
1115 \ "call prop_add(2, 10, {'length': 3, 'type': 'search'})",
1116 \ "call prop_add(3, 9, {'length': 3, 'type': 'search'})",
1117 \ "call prop_add(4, 8, {'length': 3, 'type': 'search'})",
1118 \ "call prop_add(5, 7, {'length': 3, 'type': 'search'})",
1119 \ "call prop_add(6, 6, {'length': 3, 'type': 'search'})",
1120 \ "call prop_add(7, 5, {'length': 3, 'type': 'search'})",
1121 \ "call prop_add(8, 4, {'length': 3, 'type': 'search'})",
1122 \ "call prop_add(9, 3, {'length': 3, 'type': 'search'})",
1123 \ "call prop_add(10, 2, {'length': 3, 'type': 'search'})",
1155 call prop_add(1, 2, {'length': 3, 'type': 'search'})
1156 call prop_add(2, 3, {'length': 3, 'type': 'search'})
1175 prop_add(1, 12, {'length': 3, 'type': 'number'})
1176 prop_add(1, 32, {'length': 4, 'type': 'number'})
1227 call prop_add(1, 1, {'length': 4, 'type': 'dni'})
1286 call prop_add(1, 12, {'length': 3, 'type': 'number'})
1287 call prop_add(2, 1, {'length': 3, 'type': 'number'})
1288 call prop_add(3, 36, {'length': 4, 'type': 'number'})
1291 \ #{type_bufnr: 0, id: 0, col: 13, end: 1, type: 'number', length: 3, start: 1},
1292 \ #{type_bufnr: 0, id: 0, col: 1, end: 1, type: 'number', length: 3, start: 1},
1293 \ #{type_bufnr: 0, id: 0, col: 50, end: 1, type: 'number', length: 4, start: 1}]
1303 let expected = [{'id': 0, 'col': 10, 'end': 1, 'type': 'number', 'length': 3, 'start': 1}]
1401 …call assert_equal([#{type_bufnr: 0, id: 0, col: 1, end: 1, type: 'test', length: 1, start: 1}], pr…
1405 …call assert_equal([#{type_bufnr: 0, id: 0, col: 1, end: 1, type: 'test', length: 1, start: 1}], pr…
1416 call prop_add(1, 1, {'length': 4, 'type': 'test'})
1417 call prop_add(1, 10, {'length': 3, 'type': 'test'})
1420 \ #{type_bufnr: 0, id: 0, lnum: 1, col: 10, end: 1, type: 'test', length: 3, start: 1},
1431 call prop_add(1, 1, {'length': 0, 'type': 'test'})
1434 \ #{type_bufnr: 0, id: 0, lnum: 1, col: 1, end: 1, type: 'test', length: 0, start: 1},
1463 call assert_fails("call prop_add(1, 5, {'type':'missing_type', 'length':1})", 'E971:')
1475 call assert_fails("call prop_add(2, 3, {'type': 'xxx', 'length':-1})", 'E475:')
1477 call assert_fails("call prop_add(2, 3, {'length':1})", 'E965:')
1487 call prop_add(1, 6, {'length': 4, 'type': 'test'})
1492 \ [#{type_bufnr: 0, id: 0, col: 6, end: 0, type: 'test', length: 2, start: 1}],
1495 \ [#{type_bufnr: 0, id: 0, col: 1, end: 1, type: 'test', length: 2, start: 0}],
1500 …call assert_equal([#{type_bufnr: 0, id: 0, col: 6, end: 1, type: 'test', length: 5, start: 1}], pr…
1510 call prop_add(1, 5, {'length': 3, 'type': 'test'})
1515 \ #{type_bufnr: 0, id: 0, col: 5, end: 1, type: 'test', length: 3, start: 1}])
1520 \ #{type_bufnr: 0, id: 0, col: 5, end: 1, type: 'test', length: 4, start: 1}])
1530 call prop_add(1, 1, {'length': 3, 'type': 'test'})
1531 call prop_add(2, 1, {'length': 3, 'type': 'test'})
1536 let expected = [#{type_bufnr: 0, id: 0, col: 3, end: 1, type: 'test', length: 3, start: 1}]
1543 let expected[0].length = 5
1577 " line at the wrong moment. Exact text length matters.
1626 prop_add(1, 1, {type: 'bufnr-global', length: 1})
1627 prop_add(1, 2, {type: 'bufnr-buffer', length: 1})
1631 {id: 0, col: 1, type_bufnr: 0, end: 1, type: 'bufnr-global', length: 1, start: 1},
1632 {id: 0, col: 2, type_bufnr: bufnr, end: 1, type: 'bufnr-buffer', length: 1, start: 1},