From c842cbcb59ba734d803dfe149ae6246d9056539d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 12 Sep 2020 14:54:55 +0200 Subject: Update --- scripts/build | 11 +++++++++-- syntax/rust.vim | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/build b/scripts/build index fabec033..352ff8da 100755 --- a/scripts/build +++ b/scripts/build @@ -135,8 +135,15 @@ def transform_patterns(heuristics) end def load_languages - url = "#{BASE_URL}/lib/linguist/languages.yml" - data = URI.open(url) { |io| YAML.load(io.read) } + file = 'tmp/languages.yml' + + unless File.exist?(file) + url = "#{BASE_URL}/lib/linguist/languages.yml" + data = URI.open(url) { |io| io.read } + File.write(file, data) + end + + YAML.load(File.read(file)) end def parse_remote(remote) diff --git a/syntax/rust.vim b/syntax/rust.vim index 2ad37ed8..a5f312be 100644 --- a/syntax/rust.vim +++ b/syntax/rust.vim @@ -231,7 +231,7 @@ syn region rustCommentBlockDocNestError matchgroup=rustCommentBlockDocError star " then you must deal with cases like ``/*/**/*/``. And don't try making it " worse with ``\%(/\@