[TxMt] Latex bundle: error catching problem
Alexander Ross
alex.j.ross at gmail.com
Thu Jan 4 20:27:14 UTC 2007
Haris,
\xhh is the the character with hex value hh. So \x7f-\xff is the
range of characters from \x7f to \xff. Everything else in there is
just regular expression syntax. So, the reason that the regular
expression doesn't match "./a-b.tex" is that the "-" character isn't
matched in that regex. I think there are probably other valid
characters that aren't matched.
– Alex
On Jan 4, 2007, at 4:58 AM, Charilaos Skiadas wrote:
> On Jan 4, 2007, at 7:10 AM, Piero D'Ancona wrote:
>
>> To reproduce, create a new .tex file containing
>
> Thanks for the great minimal example, I can definitely reproduce it
> here. Very interesting! I'm leaving for a conference in a couple of
> hours, but I'll try to take a look at it when I get a moment. I am
> guessing it might have to do with the following line in Support/bin/
> latexErrWarnHtml.py:
>
> errPat = re.compile('^([\.\/\w\x7f-\xff]+\.tex):(\d+):.*')
>
> I don't know much about Python so it would take me some time to
> figure it out exactly, but I wonder if this would match:
>
> ./a.tex:4: Extra }, or forgotten $.
>
> but not:
>
> ./a-b.tex:4: Extra }, or forgotten $.
>
> hence causing the problem we are seeing. I am just not sur what the
> \x7f-\xff stuff is doing, but it seems the part of the pattern
> referring to the filename is a bit restrictive. Perhaps some Python
> guru can help us out a bit here. Brad? Jacob?
>
> Haris
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list