Sha256: 9225ac4ae8c85130d8df7ad74318c32e8d91130c42a6e3aa1020c8f6d07c5315
Contents?: true
Size: 1.36 KB
Versions: 23
Compression:
Stored size: 1.36 KB
Contents
CodeMirror.defineMode("pascal",function(){function e(e){for(var r={},t=e.split(" "),n=0;n<t.length;++n)r[t[n]]=!0;return r}function r(e,r){var u=e.next();if("#"==u&&r.startOfLine)return e.skipToEnd(),"meta";if('"'==u||"'"==u)return r.tokenize=t(u),r.tokenize(e,r);if("("==u&&e.eat("*"))return r.tokenize=n,n(e,r);if(/[\[\]{}\(\),;\:\.]/.test(u))return null;if(/\d/.test(u))return e.eatWhile(/[\w\.]/),"number";if("/"==u&&e.eat("/"))return e.skipToEnd(),"comment";if(a.test(u))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_]/);var l=e.current();return o.propertyIsEnumerable(l)?"keyword":i.propertyIsEnumerable(l)?"atom":"variable"}function t(e){return function(r,t){for(var n,o=!1,i=!1;null!=(n=r.next());){if(n==e&&!o){i=!0;break}o=!o&&"\\"==n}return(i||!o)&&(t.tokenize=null),"string"}}function n(e,r){for(var t,n=!1;t=e.next();){if(")"==t&&n){r.tokenize=null;break}n="*"==t}return"comment"}var o=e("and array begin case const div do downto else end file for forward integer boolean char function goto if in label mod nil not of or packed procedure program record repeat set string then to type until var while with"),i={"null":!0},a=/[+\-*&%=<>!?|\/]/;return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||r)(e,t);return"comment"==n||"meta"==n?n:n},electricChars:"{}"}}),CodeMirror.defineMIME("text/x-pascal","pascal");
Version data entries
23 entries across 23 versions & 1 rubygems