Skip to content
Commit 20499383 authored by Francis Herne's avatar Francis Herne
Browse files

Set mostly-correct endCol on numbers, single-quoted strings and subscripts.

Before, endCol of number/string literals was identical to startCol;
 endCol of subscripts was the end of their slice node. This caused
 highlighting glitches when trying to position things after them.

Unaddressed:
 - Triple-quoted (particularly multiline) strings. This gets length 2
    (inc. quotes) or does nothing, which is no worse than at present.
   Such strings are very unusual inside expressions where we care about
   the length.

 - Space between the end of a slice and the closing bracket of a
   subscript: `a = b[ 2 ]`. Recommended against by PEP-8, but happens.

This should fix most remaining examples of bug 373850.
CCBUG: 373850
parent 7c3784b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment