The KeywordMapperArgs interface defines the structure of the arguments for a keyword mapper, which is a function that maps keywords to token types based on a provided mapping.
It directly corresponds to the createKeywordMapper function in Ace Editor, which is used to create a keyword mapper for syntax highlighting, i.e. this.createKeywordMapper(map, defaultToken).
The
KeywordMapperArgsinterface defines the structure of the arguments for a keyword mapper, which is a function that maps keywords to token types based on a provided mapping.It directly corresponds to the
createKeywordMapperfunction in Ace Editor, which is used to create a keyword mapper for syntax highlighting, i.e.this.createKeywordMapper(map, defaultToken).