Skip to content

Commit

Permalink
Add ---@cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwerOxotnik committed May 19, 2024
1 parent 0633dce commit fd9912b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sitelen_pona.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ function M.toki_pona_mute_to_sitelen_pona(_text, new_line_pattern)
end
end

---@cast first_i integer
---@cast last_i integer
if last_result_i < last_i then
local prev_part = last_part:sub(last_result_i+1, first_i-1)
local sitelen_pona_char = __lexicon[prev_part]
Expand Down

0 comments on commit fd9912b

Please sign in to comment.