UNPKG

highlight-ts

Version:

Highlight.JS in TypeScript (and ES6).

44 lines 1.14 kB
"use strict"; /* Language: Access log Author: Oleg Efimov <efimovov@gmail.com> Description: Apache/Nginx Access Logs */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AccessLog = { name: 'accesslog', contains: [ // IP { className: 'number', begin: '\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b' }, // Other numbers { className: 'number', begin: '\\b\\d+\\b', relevance: 0 }, // Requests { className: 'string', begin: '"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)', end: '"', keywords: 'GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE', illegal: '\\n', relevance: 10 }, // Dates { className: 'string', begin: /\[/, end: /\]/, illegal: '\\n' }, // Strings { className: 'string', begin: '"', end: '"', illegal: '\\n' } ] }; //# sourceMappingURL=accesslog.js.map