1
0
Fork 0
mirror of https://github.com/pnx/tree-sitter-dotenv synced 2026-06-16 01:54:56 +02:00

Merge pull request #2 from LZDQ/fix/escape-dot

Fix lua pattern matching by escaping the dot
This commit is contained in:
Henrik Hautakoski 2025-09-01 00:38:12 +02:00 committed by GitHub
commit 43a08ed422
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ config = function(_, opts)
-- Associate .env files as "dotenv"
vim.filetype.add({
pattern = {
['.env.*'] = 'dotenv',
['%.env.*'] = 'dotenv',
},
})
end