aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-09-15 14:43:58 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-14 15:55:25 +0200
commit507a0c9bda6a63abf74d4eb62f0d55171609e724 (patch)
tree4c3ec8725d4da972ad98ffc24a4f8d15773e220a /ftdetect
parentftdetect: Account for GLEPs using .rst suffix (diff)
downloadgentoo-syntax-507a0c9bda6a63abf74d4eb62f0d55171609e724.tar.gz
gentoo-syntax-507a0c9bda6a63abf74d4eb62f0d55171609e724.tar.bz2
gentoo-syntax-507a0c9bda6a63abf74d4eb62f0d55171609e724.zip
ftdetect: Account for GLEPs using YAML-compatible preamble
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/gentoo.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index 610c6ef..d5f6808 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -19,7 +19,7 @@ au BufNewFile,BufRead *.e{build,class}
" GLEPs
au BufNewFile,BufRead *.txt,*.rst
- \ if (getline(1) =~? "^GLEP: ") |
+ \ if (getline(1) =~? "^GLEP: " || getline(2) =~? "^GLEP: ") |
\ set filetype=glep |
\ endif