Closed rgeorgi closed 7 years ago
Oops, I thought I tested for this, but it looks like you're right. In analyzers.py, we have:
...
for line in block.lines:
startline = line.lineno
endline = line.lineno # same for now
match = lg_re.search(normalize_characters(line))
if match is not None:
...
But the last two lines should be something like this:
...
for match in lg_re.finditer(normalize_characters(line)):
...
I thought it was a bug in my code, but it appears when multiple language names appear on the same line, we are only matching the first.
For instance, the snippet
Only returns chinese for line 27.