Skip to content

Commit

Permalink
Allow keywords containing '.'
Browse files Browse the repository at this point in the history
Fixes #201
  • Loading branch information
AlanDrake committed Jul 3, 2024
1 parent 84b2640 commit 6537ecd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/write_metablock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function add_word(keywords, word)
chars = chars .. '%-'
end

-- preserve . in the middle of the word
if first ~= '.' and last ~= '.' then
chars = chars .. '%.'
end

-- preserve _ in the middle of the word
if first ~= '_' and last ~= '_' then
chars = chars .. '_'
Expand Down

0 comments on commit 6537ecd

Please sign in to comment.