]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/tcl.js
1 /*! `tcl` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Description: Tcl is a very simple programming language.
8 Author: Radek Liska <radekliska@gmail.com>
9 Website: https://www.tcl.tk/about/language.html
14 const regex
= hljs
.regex
;
15 const TCL_IDENT
= /[a-zA-Z_][a-zA-Z0-9_]*/;
20 hljs
.BINARY_NUMBER_MODE
,
125 "tcl_startOfNextWord",
126 "tcl_startOfPreviousWord",
127 "tcl_wordBreakAfter",
128 "tcl_wordBreakBefore",
151 hljs
.COMMENT(';[ \\t]*#', '$'),
152 hljs
.COMMENT('^[ \\t]*#', '$'),
154 beginKeywords: 'proc',
160 begin: '[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*',
162 endsWithParent: true,
168 className: "variable",
170 { begin: regex
.concat(
172 regex
.optional(/::/),
179 begin: '\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*',
187 contains: [ hljs
.BACKSLASH_ESCAPE
],
188 variants: [ hljs
.inherit(hljs
.QUOTE_STRING_MODE
, { illegal: null }) ]
199 export default hljsGrammar
;