Posted 18 years ago
by Benjamin Lewis
Hi,
My custom language contains state transitions to SQL as a child language. I've implemented a "toggle comment" command which either comments or uncomments the selected region depending on its current state. Unfortunately, SQL uses different comment syntax than the parent language. Is there some way of determining which language rules are in effect at a specified offset?
[resolved]: I got it through the token at the given offset.
--
Benjamin Lewis
[Modified at 06/27/2006 03:38 PM]
My custom language contains state transitions to SQL as a child language. I've implemented a "toggle comment" command which either comments or uncomments the selected region depending on its current state. Unfortunately, SQL uses different comment syntax than the parent language. Is there some way of determining which language rules are in effect at a specified offset?
[resolved]: I got it through the token at the given offset.
--
Benjamin Lewis
[Modified at 06/27/2006 03:38 PM]