From 2bd4158e1d5a7f21492400c5d86c9208354e10c3 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Mon, 18 Jan 2016 22:25:33 +0100 Subject: [PATCH] Fixes double dot problem with numerical constrants --- CHANGELOG.md | 1 + grammars/mzn.cson | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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' } ]