I’ve looked in all obvious locations for the file and used find on the 5.0 source tree from github and looked in the launchpad tree for 5.0 in ./common ./include and ./pagelayout_editor
I did see the keywords file, that is not a BNF or a lexer
If a developer or knowledgeable user could chime in with the location (or most likely it seems the method of building it) I would be grateful!
Also you might consider asking this over on the bugtracker or maybe better the mailing list as we here are mainly fellow users not developers. (Some dev might show up but it could take some time)
Apparently it is generated from the tokens file during the build process.
/* Do not modify this file it was automatically generated by the
* TokenList2DsnLexer CMake script.
*/
#ifndef PAGE_LAYOUT_READER_LEXER_H_
#define PAGE_LAYOUT_READER_LEXER_H_
#include <dsnlexer.h>
...