@@ -2,7 +2,7 @@ module Tokenize
22
33export tokenize, untokenize
44
5- using ..JuliaSyntax: JuliaSyntax, Kind, @K_str, @KSet_str
5+ using ..JuliaSyntax: JuliaSyntax, Kind, @K_str, @KSet_str, @callsite_inline 
66
77import ..JuliaSyntax: kind,
88    is_literal, is_contextual_keyword, is_word_operator
@@ -1303,14 +1303,14 @@ function lex_identifier(l::Lexer, c)
13031303            @inbounds if (pc_byte == UInt8('!') && ppc == '=') || !ascii_is_identifier_char[pc_byte+1]
13041304                break
13051305            end
1306-         elseif Unicode.isgraphemebreak!(graphemestate, c, pc)
1306+         elseif @callsite_inline  Unicode.isgraphemebreak!(graphemestate, c, pc)
13071307            if (pc == '!' && ppc == '=') || !is_identifier_char(pc)
13081308                break
13091309            end
13101310        elseif pc in ('\u200c','\u200d') # ZWNJ/ZWJ control characters
13111311            # ZWJ/ZWNJ only within grapheme sequences, not at end
13121312            graphemestate_peek[] = graphemestate[]
1313-             if Unicode.isgraphemebreak!(graphemestate_peek, pc, ppc)
1313+             if @callsite_inline  Unicode.isgraphemebreak!(graphemestate_peek, pc, ppc)
13141314                break
13151315            end
13161316        end
0 commit comments