mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-24 01:04:49 -06:00
fa9ae9437c
The gitbook install has been incredibly flaky due to it's dependency on npm. This commit simply vendors the node_modules so that each time we build the site the process doesn't have to re-run gitbook install. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
37 lines
827 B
JavaScript
37 lines
827 B
JavaScript
module.exports = function(hljs) {
|
|
return {
|
|
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'
|
|
}
|
|
]
|
|
};
|
|
}; |