Fix tokenizer with nested brackets which can be found in Structured Refs

#301 Merged at 5771f09
Repository
stephenrauch
Branch
2.5
Repository
openpyxl
Branch
2.5
Author
  1. Stephen Rauch
Reviewers
Description

The tokenizer will currently split this structured reference:

TableX[[#Data],[COL1]:[COL2]]

Into multiple tokens because it does not handle nested brackets correctly

Comments (1)

  1. CharlieC

    Thanks. I changed the implementation subsequently because I think this can be simpler: we just need to check that brackets are balanced and set the token accordingly. Tests pass but you might want to review it.