Greetings.
I do use and love this library very much and I think its great.
However, it seems to fall short for supporting complex languages like SQL or R where the meaning of a token can't be derived from a keyword only.
Example:
SELECT Overlaps( overlaps ) AS overlaps
FROM overlaps.overlaps overlaps
WHERE overlaps = 'overlaps'
AND (CURRENT_TIME, INTERVAL '1' HOUR) OVERLAPS (CURRENT_TIME, INTERVAL -'1' HOUR)
;
In this example, OVERLAPS is an Expression, a Function, a Label, a Column Name -- and so the highlighting is wrong based on classifying it as keyword.
In my opinion, parsing the AST would help because it will give you precise information, what Token Type comes next.
Would you be willing to accept another TokenMaker implementation, which reads Tokens from an AST (generated by ANTLR or JavaCC)? I would like to start with an implementation for SQL because this bothers me most.
Greetings.
I do use and love this library very much and I think its great.
However, it seems to fall short for supporting complex languages like SQL or R where the meaning of a token can't be derived from a
keywordonly.Example:
In this example,
OVERLAPSis an Expression, a Function, a Label, a Column Name -- and so the highlighting is wrong based on classifying it as keyword.In my opinion, parsing the AST would help because it will give you precise information, what Token Type comes next.
Would you be willing to accept another TokenMaker implementation, which reads Tokens from an AST (generated by ANTLR or JavaCC)? I would like to start with an implementation for
SQLbecause this bothers me most.