summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/syntax/env.vim
AgeCommit message (Collapse)AuthorFiles
2026-02-20vim-patch:9.2.0033: filetype: sh filetype used for env fileszeertzjq1
Problem: filetype: sh filetype used for env files Solution: Detect *.env and .env.* files as env filetype, detect .envrc and .envrc.* as sh filetype, include a simple env syntax script (DuckAfire) Previously, .env files were handled by the shell syntax. While functional, this limited the ability to support specific .env implementations, such as CodeIgniter4 which allows dots in keys (e.g., "foo.bar=0"). The new dedicated 'env' filetype and syntax script improves legibility and prevents highlighting from breaking when encountering spaces. Currently, the syntax does not support indentation; fields, variables, and comments must start at the beginning of the line. closes: vim/vim#19260 https://github.com/vim/vim/commit/d0fa375629b1bfdb8dc054894ca81d7473268455 Co-authored-by: DuckAfire <155199080+duckafire@users.noreply.github.com>