diff --git a/CHANGELOG.md b/CHANGELOG.md index 840e182..eccef63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## 0.4.1 - Enables the user to disable linting in the package settings +- Fixes problem in highlighting of numerical constants ## 0.4.0 - Combines the linter and syntax highlighting package (formerly https://github.com/jjdekker/linter-mzn). I'll look into the possibility of disabling the linter extension at a later stadium. diff --git a/grammars/mzn.cson b/grammars/mzn.cson index a26144e..25dea99 100644 --- a/grammars/mzn.cson +++ b/grammars/mzn.cson @@ -140,7 +140,7 @@ } { - 'match': '([+-]?)\\d+(\\.\\d*)?([eE][-+]?\\d+)?' + 'match': '([+-]?)\\d+(\\.(?!\\.)\\d*)?([eE][-+]?\\d+)?' 'name': 'constant.numeric.mzn' } ]