tokenizeStrings
tokenizeStrings(
tokens,tokenize):void
Defined in: prism/utils/tokenize-strings.js:11
Tokenizes all strings in the token stream with the given tokenization function.
Parameters
Section titled “Parameters”tokens
Section titled “tokens”Tokens to mutate.
tokenize
Section titled “tokenize”(code) => TokenStream
Function applied to all strings in the token stream. The token stream returned must have the same text content as the given text.
Returns
Section titled “Returns”void