From 95923dba80c9aeb925de5f10cd2b85ad23fc923c Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 16 Mar 2015 17:09:58 +0100 Subject: [PATCH] Syntax hilighting update. --- mode-solidity.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mode-solidity.js b/mode-solidity.js index f9bd8f76d4..d6a4e1f96f 100644 --- a/mode-solidity.js +++ b/mode-solidity.js @@ -56,17 +56,17 @@ var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocComme var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var JavaScriptHighlightRules = function(options) { - var intTypes = 'hash|int|uint'; + var intTypes = 'bytes|int|uint'; for (var width = 8; width <= 256; width += 8) - intTypes += '|hash' + width + '|uint' + width + '|int' + width; + intTypes += '|bytes' + (width / 8) + '|uint' + width + '|int' + width; var keywordMapper = this.createKeywordMapper({ "variable.language": - "this|bool|address|" + intTypes, + "this|bool|byte|bytes|bytes0|address|" + intTypes, "keyword": "contract|constant|" + - "struct|mapping|break|continue|delete|else|for|function|" + + "struct|mapping|enum|break|continue|delete|else|for|function|" + "if|new|return|returns|var|while|" + - "private|public", + "private|public|external|internal", "storage.type": "constant|var|function", "constant.language.boolean": "true|false"