This commit is contained in:
hrsh7th
2021-10-19 14:38:10 +09:00
parent bad20dea88
commit c57969580d
2 changed files with 4 additions and 0 deletions

View File

@@ -82,6 +82,9 @@ char.is_semantic_index = function(text, index)
if not char.is_alpha(prev) and char.is_alpha(curr) then
return true
end
if not char.is_digit(prev) and char.is_digit(curr) then
return true
end
return false
end