[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax-propertize-function vs indentation lexer
From: |
Stefan Monnier |
Subject: |
Re: syntax-propertize-function vs indentation lexer |
Date: |
Sat, 01 Jun 2013 10:31:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
>> Although, using it for indentation makes speed a real concern:
>> in many cases one does "edit+reindent", so if you put a "full reparse"
>> between the two, it needs to be about as fast as instantaneous.
> That's how my current SMIE-based parser works, and it's "fast enough".
Very interesting.
> I'm working on replacing it with an LALR parser, because the resulting
> code is much cleaner.
Makes sense: if you're going to parse the whole buffer forward anyway,
the limitations of SMIE don't make much sense: they're there
specifically so you can parse backward on-the-fly instead of keeping
a full-parse around.
Stefan