Skip to content

Commit bc828fc

Browse files
authored
fix(pack): Fix path_regex regular expression (#1284)
1 parent b25c9e7 commit bc828fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/astrocommunity/pack/ansible/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local function yaml_ft(path, bufnr)
44
if type(content) == "table" then content = table.concat(content, "\n") end
55

66
-- check if file is in roles, tasks, or handlers folder
7-
local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|\\vars\\|tasks)/"
7+
local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|vars\\|tasks)/"
88
if path_regex and path_regex:match_str(path) then return "yaml.ansible" end
99

1010
-- check for known ansible playbook text and if found, return yaml.ansible

0 commit comments

Comments
 (0)