]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/tcl.js
1 /*! `tcl` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Description: Tcl is a very simple programming language.
9 Author: Radek Liska <radekliska@gmail.com>
10 Website: https://www.tcl.tk/about/language.html
15 const regex
= hljs
.regex
;
16 const TCL_IDENT
= /[a-zA-Z_][a-zA-Z0-9_]*/;
21 hljs
.BINARY_NUMBER_MODE
,
126 "tcl_startOfNextWord",
127 "tcl_startOfPreviousWord",
128 "tcl_wordBreakAfter",
129 "tcl_wordBreakBefore",
152 hljs
.COMMENT(';[ \\t]*#', '$'),
153 hljs
.COMMENT('^[ \\t]*#', '$'),
155 beginKeywords: 'proc',
161 begin: '[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*',
163 endsWithParent: true,
169 className: "variable",
171 { begin: regex
.concat(
173 regex
.optional(/::/),
180 begin: '\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*',
188 contains: [ hljs
.BACKSLASH_ESCAPE
],
189 variants: [ hljs
.inherit(hljs
.QUOTE_STRING_MODE
, { illegal: null }) ]
200 hljs
.registerLanguage('tcl', hljsGrammar
);