From 449bbfe406802d919be26400505c909cf837c56e Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 26 Aug 2013 21:59:17 +0400 Subject: [PATCH] improve batch highlighting --- lib/ace/mode/batchfile_highlight_rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ace/mode/batchfile_highlight_rules.js b/lib/ace/mode/batchfile_highlight_rules.js index 488edbb9..be0380d8 100644 --- a/lib/ace/mode/batchfile_highlight_rules.js +++ b/lib/ace/mode/batchfile_highlight_rules.js @@ -78,7 +78,8 @@ var BatchFileHighlightRules = function() { { token: 'keyword.operator.redirect.shell', regex: '&>|\\d*>&\\d*|\\d*(?:>>|>|<)|\\d*<&|\\d*<>' } ], variable: [ - { token: 'constant.numeric', regex: '%%\\w+'}, + { token: 'constant.numeric', regex: '%%\\w+|%[*\\d]|%\\w+%'}, + { token: 'constant.numeric', regex: '%~\\d+'}, { token: ['markup.list', 'constant.other', 'markup.list'], regex: '(%)(\\w+)(%?)' }]}