diff options
| author | Simon Fowler <simon.fowler@anu.edu.au> | 2024-08-31 13:44:03 +1000 |
|---|---|---|
| committer | Simon Fowler <simon.fowler@anu.edu.au> | 2024-08-31 13:44:03 +1000 |
| commit | 48f72422763757b3875daf55c16e46bbfd9b3285 (patch) | |
| tree | 6558922ee0b1cc5c65e544fba74dd42f320a174b /rc | |
| parent | 202747e68896aebbe38cc160391629e020f0c2a1 (diff) | |
Match against .sql extension, not sql suffix.
The SQL filetype detection currently matches against a 'sql' suffix on
the filename, which incorrectly matches a filename like 'run-psql'.
Instead, explicitly match against a '.sql' suffix.
Diffstat (limited to 'rc')
| -rw-r--r-- | rc/filetype/sql.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/sql.kak b/rc/filetype/sql.kak index befa9de6..e60aeadd 100644 --- a/rc/filetype/sql.kak +++ b/rc/filetype/sql.kak @@ -4,7 +4,7 @@ # Detection # ‾‾‾‾‾‾‾‾‾ -hook global BufCreate .*/?(?i)sql %{ +hook global BufCreate .*[.](?i)sql %{ set-option buffer filetype sql } |
