You should edit the lexer in the SynWrite's LexerProperties dialog, so dialog will give you the checkListBox control, like this:
[x] Id
[x] Id Keyword
[x] String
[x] Number
....
from your checkboxes, dialog will compose the final number, TokenTypes.
for example:
TokenTypes = 4096
it means 2**12, so it is only checkBox number 12 checked (0-th is first), others are unchecked.
Always use the dialog. https://wiki.freepascal.org/CudaText#Le ... d_creation