]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/lasso.js
1 /*! `lasso` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= ( function () {
7 Author: Eric Knibbe <eric@lassosoft.com>
8 Description: Lasso is a language and server platform for database-driven web applications. This definition handles Lasso 9 syntax and LassoScript for Lasso 8.6 and earlier.
9 Website: http://www.lassosoft.com/What-Is-Lasso
10 Category: database, web
13 function lasso ( hljs
) {
14 const LASSO_IDENT_RE
= '[a-zA-Z_][ \\ w.]*' ;
15 const LASSO_ANGLE_RE
= '< \\ ?(lasso(script)?|=)' ;
16 const LASSO_CLOSE_RE
= ' \\ ]| \\ ?>' ;
17 const LASSO_KEYWORDS
= {
18 $ pattern : LASSO_IDENT_RE
+ '|&[lg]t;' ,
20 'true false none minimal full all void and or not '
21 + 'bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft' ,
23 'array date decimal duration integer map pair string tag xml null '
24 + 'boolean bytes keyword list locale queue set stack staticarray '
25 + 'local var variable global data self inherited currentcapture givenblock' ,
27 'cache database_names database_schemanames database_tablenames '
28 + 'define_tag define_type email_batch encode_set html_comment handle '
29 + 'handle_error header if inline iterate ljax_target link '
30 + 'link_currentaction link_currentgroup link_currentrecord link_detail '
31 + 'link_firstgroup link_firstrecord link_lastgroup link_lastrecord '
32 + 'link_nextgroup link_nextrecord link_prevgroup link_prevrecord log '
33 + 'loop namespace_using output_none portal private protect records '
34 + 'referer referrer repeating resultset rows search_args '
35 + 'search_arguments select sort_args sort_arguments thread_atomic '
36 + 'value_list while abort case else fail_if fail_ifnot fail if_empty '
37 + 'if_false if_null if_true loop_abort loop_continue loop_count params '
38 + 'params_up return return_value run_children soap_definetag '
39 + 'soap_lastrequest soap_lastresponse tag_name ascending average by '
40 + 'define descending do equals frozen group handle_failure import in '
41 + 'into join let match max min on order parent protected provide public '
42 + 'require returnhome skip split_thread sum take thread to trait type '
43 + 'where with yield yieldhome'
45 const HTML_COMMENT
= hljs
. COMMENT (
50 const LASSO_NOPROCESS
= {
52 begin : ' \\ [noprocess \\ ]' ,
54 end : ' \\ [/noprocess \\ ]' ,
56 contains : [ HTML_COMMENT
]
61 begin : ' \\ [/noprocess|' + LASSO_ANGLE_RE
63 const LASSO_DATAMEMBER
= {
65 begin : ' \' ' + LASSO_IDENT_RE
+ ' \' '
68 hljs
. C_LINE_COMMENT_MODE
,
69 hljs
. C_BLOCK_COMMENT_MODE
,
70 hljs
. inherit ( hljs
. C_NUMBER_MODE
, { begin : hljs
. C_NUMBER_RE
+ '|(-?infinity|NaN) \\ b' }),
71 hljs
. inherit ( hljs
. APOS_STRING_MODE
, { illegal : null }),
72 hljs
. inherit ( hljs
. QUOTE_STRING_MODE
, { illegal : null }),
80 { begin : '[#$]' + LASSO_IDENT_RE
},
97 begin : '-(?!infinity)' + LASSO_IDENT_RE
,
100 { begin : '( \\ . \\ . \\ .)' }
106 contains : [ LASSO_DATAMEMBER
]
110 beginKeywords : 'define' ,
113 contains : [ hljs
. inherit ( hljs
. TITLE_MODE
, { begin : LASSO_IDENT_RE
+ '(=(?!>))?|[-+*/%](?!>)' }) ]
122 case_insensitive : true ,
123 keywords : LASSO_KEYWORDS
,
127 begin : LASSO_CLOSE_RE
,
130 end : ' \\ [|' + LASSO_ANGLE_RE
,
133 contains : [ HTML_COMMENT
]
140 begin : ' \\ [no_square_brackets' ,
142 end : ' \\ [/no_square_brackets \\ ]' , // not implemented in the language
143 keywords : LASSO_KEYWORDS
,
147 begin : LASSO_CLOSE_RE
,
150 end : ' \\ [noprocess \\ ]|' + LASSO_ANGLE_RE
,
152 contains : [ HTML_COMMENT
]
179 export default hljsGrammar
;