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+)(%?)' }]}