mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 04:53:51 -05:00
Add warning to generated files
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
""" autoload/polyglot.vim
|
" Please do not edit this file directly, instead modify polyglot.vim or scripts/build
|
||||||
|
|
||||||
" Line continuation is used here, remove 'C' from 'cpoptions'
|
" Line continuation is used here, remove 'C' from 'cpoptions'
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
""" ftdetect/polyglot.vim
|
" Please do not edit this file directly, instead modify polyglot.vim or scripts/build
|
||||||
|
|
||||||
" don't spam the user when Vim is started in Vi compatibility mode
|
" don't spam the user when Vim is started in Vi compatibility mode
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ Dir.chdir(File.dirname(__dir__))
|
|||||||
BASE_URL = 'https://raw.githubusercontent.com/github/linguist/master'
|
BASE_URL = 'https://raw.githubusercontent.com/github/linguist/master'
|
||||||
|
|
||||||
def read_section(name)
|
def read_section(name)
|
||||||
File.read('polyglot.vim').match(/""" #{Regexp.escape(name)}.*\n(?=\n""")/m)[0]
|
"\" Please do not edit this file directly, instead modify polyglot.vim or scripts/build\n\n" +
|
||||||
|
File.read('polyglot.vim').match(/""" #{Regexp.escape(name)}\n*(.*)\n(?=\n""")/m)[1]
|
||||||
end
|
end
|
||||||
|
|
||||||
def camelize(str)
|
def camelize(str)
|
||||||
|
|||||||
Reference in New Issue
Block a user