Closed vanessadnguyen closed 8 months ago
No. i-mac
is not an identifier in JavaScript. It's broken up into:
i
an identifier-
a punctuatormac
an identifierIf you want that to be treated as a single identifier, then you'd need something other than a JavaScript parser/tokenizer.
Hi, By default the tokenizer splits words on hyphens , so for example "i-mac" is tokenized to "i" and "mac" Is there any way to configure the behavior of the tokenizer to stop it splitting words on hyphens?
Thanks for reading my message, Vanessa