diff options
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build b/scripts/build index 0ed76045..482ffcf6 100755 --- a/scripts/build +++ b/scripts/build @@ -13,7 +13,8 @@ Dir.chdir(File.dirname(__dir__)) BASE_URL = 'https://raw.githubusercontent.com/github/linguist/master' 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 def camelize(str) |