Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,8 @@ module.exports = grammar({
// Some symbols in Sm and So unicode categories that are identifiers
const validMathSymbols = '°∀-∇∎-∑∫-∳';

const start = `[_\\p{XID_Start}${validMathSymbols}\\p{Emoji}&&[^0-9#*]]`;
// Emojis are currently not supported because they double the parser size
const start = `[_\\p{XID_Start}${validMathSymbols}&&[^0-9#*]]`;
const rest = `[^"'\`\\s\\.\\-\\[\\]${nonIdentifierCharacters}]*`;
return new RegExp(start + rest);
},
Expand Down
Loading
Loading