Extending the tokens

I am using lang-sql package and i have an sql text editor. For a line of code like this,

SELECT * FROM database.schema.table

I am retrieving the tokens by iterating the syntax tree.
i want 'database.schema.table' as a single token called tableName. Here database, schema, table etc could be any alphanumeric string.

How do I do this using codemirror and lezer?

This whole name should be tagged as a CompositeIdentifier node in the syntax tree produced by @codemirror/lang-sql