From 47cca9a0f2d5f8872cd98b07ac28921c8a8312bd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 14 Jun 2014 09:49:51 -0700 Subject: [PATCH] tools/fileio.py was not tokenizing \a\b into two id entries as it should have. Fixed. --- dwarf5/tools/fileio.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dwarf5/tools/fileio.py b/dwarf5/tools/fileio.py index 6ced0fa..4eed82b 100644 --- a/dwarf5/tools/fileio.py +++ b/dwarf5/tools/fileio.py @@ -226,6 +226,7 @@ class dwline: other->ind other->id id->ind + id->id id->other """ dwclass = "none" @@ -283,6 +284,15 @@ class dwline: dwclass = "ind" self._toks += [a] continue + if isIdStart(c) == "y": + # It is a valid initial character of an id. + # So we have id following id, like \a\a + combotok.finishUpId() + self._toks += [combotok] + combotok = dwtoken() + combotok.setInitialIdChar(c,linenum) + dwclass = "id" + continue # Other class input, other starts here. combotok.finishUpId() self._toks += [combotok] -- 2.17.1