vale1410 / vim-minizinc Goto Github PK
View Code? Open in Web Editor NEWSyntax highlighting for minizinc (CP) and gringo (ASP) source code.
Syntax highlighting for minizinc (CP) and gringo (ASP) source code.
Functions such as sum
or product
are not highlighted in MiniZinc files. I see such functions are listed for the other file formats, but not for MiniZinc. Is it because this is based on an older MiniZinc standard, or am I doing something wrong? Would be a good idea to add, I can maybe open a pull request. Thanks.
I noticed today that my .mzn files aren't automatically detected as zinc files. I'm running neovim 0.8.2 which may make a difference, but the actual fix seems to involve surrounding the autocmd lines with augroup filetypedetect
and augroup END
. Or at least, that fixes it on my end. Is this just a neovim quirk (and hence shouldn't be fixed here) or should I submit a PR?
Edit: patch for just the minizinc files is here
diff --git a/ftdetect/minizinc.vim b/ftdetect/minizinc.vim
index b714396..ae61585 100644
--- a/ftdetect/minizinc.vim
+++ b/ftdetect/minizinc.vim
@@ -1,3 +1,5 @@
-autocmd BufNewFile,BufRead *.mzn set filetype=zinc
-autocmd BufNewFile,BufRead *.fzn set filetype=zinc
-autocmd BufNewFile,BufRead *.dzn set filetype=zinc
+augroup filetypedetect
+ autocmd BufNewFile,BufRead *.mzn set filetype=zinc
+ autocmd BufNewFile,BufRead *.fzn set filetype=zinc
+ autocmd BufNewFile,BufRead *.dzn set filetype=zinc
+augroup END
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.