summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-12 14:54:55 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-12 14:54:55 +0200
commitc842cbcb59ba734d803dfe149ae6246d9056539d (patch)
treef67f303b02ff254d1f9e3a4cf44321e2683384cd
parent314621a395041a5f93aef16b8c4a65a161a57eb1 (diff)
downloadvim-polyglot-c842cbcb59ba734d803dfe149ae6246d9056539d.tar.gz
vim-polyglot-c842cbcb59ba734d803dfe149ae6246d9056539d.zip
Update
-rwxr-xr-xscripts/build11
-rw-r--r--syntax/rust.vim2
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 ``\%(/\@<!\*\)\@<!``, either...
-syn keyword rustTodo contained TODO FIXME XXX NB NOTE
+syn keyword rustTodo contained TODO FIXME XXX NB NOTE SAFETY
" asm! macro {{{2
syn region rustAsmMacro matchgroup=rustMacro start="\<asm!\s*(" end=")" contains=rustAsmDirSpec,rustAsmSym,rustAsmConst,rustAsmOptionsGroup,rustComment.*,rustString.*