'use strict';(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){function d(a){if(a.eatSpace())return null;if(a.match("//"))return a.skipToEnd(),"comment";if(a.match(/^[0-9\.+-]/,!1)&&(a.match(/^[+-]?0x[0-9a-fA-F]+/)||a.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||a.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)))return"number";if(a.match(/^"([^"]|(""))*"/)||a.match(/^'([^']|(''))*'/))return"string";
if(a.match(e))return"keyword";if(a.match(f))return"variable";a.next();return null}var c="package message import syntax required optional repeated reserved default extensions packed bool bytes double enum float string int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 option service rpc returns".split(" "),e=new RegExp("^(("+c.join(")|(")+"))\\b","i");b.registerHelper("hintWords","protobuf",c);var f=/^[_A-Za-z\u00a1-\uffff][_A-Za-z0-9\u00a1-\uffff]*/;b.defineMode("protobuf",
function(){return{token:d}});b.defineMIME("text/x-protobuf","protobuf")});
