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:
parent
5ff2193335
commit
43d9af2ab6
@ -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
|
## 0.6.1 - Moved repository
|
||||||
- Change the repository URL
|
- Change the repository URL
|
||||||
|
|
||||||
|
12
grammars/dzn.cson
Normal file
12
grammars/dzn.cson
Normal 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
13
grammars/fzn.cson
Normal 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'
|
||||||
|
}
|
||||||
|
]
|
@ -3,7 +3,6 @@
|
|||||||
'comment': 'The MiniZinc medium level constraint modeling language'
|
'comment': 'The MiniZinc medium level constraint modeling language'
|
||||||
'fileTypes': [
|
'fileTypes': [
|
||||||
'mzn'
|
'mzn'
|
||||||
'dzn'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
'patterns':[
|
'patterns':[
|
||||||
|
Reference in New Issue
Block a user