Skip to content

Commit

Permalink
Update CodeMirror mode (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesinator authored and plusvic committed Nov 20, 2018
1 parent d7b9d5c commit fc2191f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions extra/codemirror/yara.js
Expand Up @@ -8,12 +8,12 @@ CodeMirror.defineMode("yara", function(config) {
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
return obj;
}
var keywords = words("all and any ascii at condition contains entrypoint false filesize for " +
var keywords = words("all and any ascii at condition contains entrypoint filesize for " +
"fullword global import in include int16 int32 int8 matches meta " +
"nocase not of or private rule strings them true uint16 uint32 " +
"uint8 wide");
"nocase not of or private rule strings them uint16 uint32 " +
"uint8 wide xor");

var atoms = {"null": true};
var atoms = {"true": true, "false": true};

var isOperatorChar = /[+\-*&%=<>!?|\/]/;

Expand Down Expand Up @@ -94,6 +94,7 @@ CodeMirror.defineMode("yara", function(config) {

electricChars: "{}"
};
});
});

CodeMirror.defineMIME("text/yara", "yara");
CodeMirror.defineMIME("text/yara", "yara");
CodeMirror.defineMIME("text/x-yara", "yara");

0 comments on commit fc2191f

Please sign in to comment.