1
0

Fixes the linting error when opening a DZN file

Fix consists of splitting the MiniZinc grammars into separate grammar files
This commit is contained in:
Jip J. Dekker 2017-11-16 15:03:17 +11:00
parent 5ff2193335
commit 43d9af2ab6
No known key found for this signature in database
GPG Key ID: 9CB1B58997DD0D58
4 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## 0.7.0 - Split grammar definitions
- Create seperate definitions for FlatZinc + Output models and DZN files.
- Fixes linting error when opening DZN files
## 0.6.1 - Moved repository
- Change the repository URL

12
grammars/dzn.cson Normal file
View File

@ -0,0 +1,12 @@
'scopeName': 'source.dzn'
'name': 'MiniZinc Data File'
'comment': 'MiniZinc data files contain the values of parameters declared in a MiniZinc model.'
'fileTypes': [
'dzn'
]
'patterns': [
{
'include': 'source.mzn'
}
]

13
grammars/fzn.cson Normal file
View File

@ -0,0 +1,13 @@
'scopeName': 'source.fzn'
'name': 'FlatZinc'
'comment': 'FlatZinc is the target constraint modelling language into which MiniZinc models are translated'
'fileTypes': [
'fzn'
'ozn'
]
'patterns': [
{
'include': 'source.mzn'
}
]

View File

@ -3,7 +3,6 @@
'comment': 'The MiniZinc medium level constraint modeling language'
'fileTypes': [
'mzn'
'dzn'
]
'patterns':[