/usr/lib/nodejs/highlight/lasso.js is in node-highlight 7.4+ds-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | module.exports = function(hljs) {
var LASSO_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_.]*|&[lg]t;';
var LASSO_START = '<\\?(lasso(script)?|=)';
return {
case_insensitive: true,
lexems: LASSO_IDENT_RE,
keywords: {
literal:
'true false none minimal full all infinity nan and or not ' +
'bw ew cn lt lte gt gte eq neq ft rx nrx',
built_in:
'array date decimal duration integer map pair string tag xml null ' +
'list queue set stack staticarray local var variable data global ' +
'self inherited void',
keyword:
'error_code error_msg error_pop error_push error_reset cache ' +
'database_names database_schemanames database_tablenames define_tag ' +
'define_type email_batch encode_set html_comment handle handle_error ' +
'header if inline iterate ljax_target link link_currentaction ' +
'link_currentgroup link_currentrecord link_detail link_firstgroup ' +
'link_firstrecord link_lastgroup link_lastrecord link_nextgroup ' +
'link_nextrecord link_prevgroup link_prevrecord log loop ' +
'namespace_using output_none portal private protect records referer ' +
'referrer repeating resultset rows search_args search_arguments ' +
'select sort_args sort_arguments thread_atomic value_list while ' +
'abort case else if_empty if_false if_null if_true loop_abort ' +
'loop_continue loop_count params params_up return return_value ' +
'run_children soap_definetag soap_lastrequest soap_lastresponse ' +
'tag_name ascending average by define descending do equals ' +
'frozen group handle_failure import in into join let match max ' +
'min on order parent protected provide public require skip ' +
'split_thread sum take thread to trait type where with yield'
},
contains: [
{
className: 'preprocessor',
begin: '\\]|\\?>',
relevance: 0,
starts: {
className: 'markup',
end: '\\[|' + LASSO_START,
returnEnd: true
}
},
{
className: 'preprocessor',
begin: '\\[noprocess\\]',
starts: {
className: 'markup',
end: '\\[/noprocess\\]',
returnEnd: true
}
},
{
className: 'preprocessor',
begin: '\\[no_square_brackets|\\[/noprocess|' + LASSO_START
},
{
className: 'preprocessor',
begin: '\\[',
relevance: 0
},
{
className: 'shebang',
begin: '^#!.+lasso9\\b',
relevance: 10
},
hljs.C_LINE_COMMENT_MODE,
{
className: 'javadoc',
begin: '/\\*\\*!', end: '\\*/'
},
hljs.C_BLOCK_COMMENT_MODE,
hljs.C_NUMBER_MODE,
hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),
hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
{
className: 'string',
begin: '`', end: '`'
},
{
className: 'variable',
begin: '#\\d+|[#$]' + LASSO_IDENT_RE
},
{
className: 'tag',
begin: '::', end: LASSO_IDENT_RE
},
{
className: 'attribute',
begin: '\\.\\.\\.|-' + hljs.UNDERSCORE_IDENT_RE
},
{
className: 'class',
beginWithKeyword: true, keywords: 'define',
excludeEnd: true, end: '\\(|=>',
contains: [
{
className: 'title',
begin: hljs.UNDERSCORE_IDENT_RE + '=?'
}
]
}
]
};
};
|