In our projects we use templates for SQL queries, which are basically using the same syntax as the Oracle dialect in the SQL plugin, with an additional syntax for parameters.
from user u
Parameters are surrounded with "#", so here we retrieve the field named "login" from the named parameter "my_user". The Oracle dialect does not like such syntax and highlights the first underscore with the following message: '(' or '[' expected, got '_'
Since I don't have access to the source code, I can only make assumptions, so here they are. I think it wouldn't be necessary to modify the parser, but only the lexer so that it recognizes my delimited parameters as SQL_IDENT/SQL_IDENT_DELIMITED, right?
I don't feel like hacking the generated lexer, and I don't have the original .flex file to modify it :(
What would be the best way to achieve this?