summaryrefslogtreecommitdiff
path: root/rc/filetype/sql.kak
diff options
context:
space:
mode:
authorSimon Fowler <simon.fowler@anu.edu.au>2024-08-31 13:44:03 +1000
committerSimon Fowler <simon.fowler@anu.edu.au>2024-08-31 13:44:03 +1000
commit48f72422763757b3875daf55c16e46bbfd9b3285 (patch)
tree6558922ee0b1cc5c65e544fba74dd42f320a174b /rc/filetype/sql.kak
parent202747e68896aebbe38cc160391629e020f0c2a1 (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/filetype/sql.kak')
-rw-r--r--rc/filetype/sql.kak2
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
}