diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2018-06-29 16:14:46 +0300 |
---|---|---|
committer | Alexander Monakov <amonakov@gcc.gnu.org> | 2018-06-29 16:14:46 +0300 |
commit | b33aa7209ed570864189dba4c070565ea4a1554b (patch) | |
tree | 052a406156c840221fbe3195518162676c678667 /contrib/vim-gcc-dev/ftdetect/gcc-dev.vim | |
parent | 8864590b7cad2b491407069d94068b65359e78c0 (diff) | |
download | gcc-b33aa7209ed570864189dba4c070565ea4a1554b.zip gcc-b33aa7209ed570864189dba4c070565ea4a1554b.tar.gz gcc-b33aa7209ed570864189dba4c070565ea4a1554b.tar.bz2 |
contrib: introduce Vim addon directory, add match.pd syntax plugin
* vim-gcc-dev/README: New file.
* vim-gcc-dev/ftdetect/gcc-dev.vim: New file.
* vim-gcc-dev/syntax/gcc-match.vim: New file.
* gimple.vim: Move under vim-gcc-dev/syntax/.
* gcc-rtl.vim: Likewise.
From-SVN: r262249
Diffstat (limited to 'contrib/vim-gcc-dev/ftdetect/gcc-dev.vim')
-rw-r--r-- | contrib/vim-gcc-dev/ftdetect/gcc-dev.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/vim-gcc-dev/ftdetect/gcc-dev.vim b/contrib/vim-gcc-dev/ftdetect/gcc-dev.vim new file mode 100644 index 0000000..ed6989a --- /dev/null +++ b/contrib/vim-gcc-dev/ftdetect/gcc-dev.vim @@ -0,0 +1,20 @@ +" Vim file type detection rules for GCC development +" +" Copyright (C) 2018 Free Software Foundation, Inc. +" +" This script is free software; you can redistribute it and/or modify +" it under the terms of the GNU General Public License as published by +" the Free Software Foundation; either version 3, or (at your option) +" any later version + +augroup filetypedetect + + au BufRead match.pd setf gcc-match + + " Match RTL dump file names such as test.c.234r.pass-name + au BufRead *.[1-3][0-9][0-9]r.* setf gcc-rtl + + " Match GIMPLE and IPA dump file names + au BufRead *.[0-2][0-9][0-9][ti].* setf gimple + +augroup END |