I defined a grammar rule
variable : ID ;
where ID is defined in the lexer grammar as
ID : VALID_ID_START VALID_ID_CHAR* ;
fragment VALID_ID_START : ('a' .. 'z') | ('A' .. 'Z') | '_' ;
fragment VALID_ID_CHAR : VALID_ID_START | ('0' .. '9') ;
However in my test, the literal word "detector" is not recognized as a token of variable. It works as expected as soon as I remove any character from the word. Is "detector" a reserved word in ANTLR4? If yes, how can I get around that since this word is a common variable in my work.