UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

39 lines (38 loc) 1.7 kB
import { l as languages } from "../../index-C1_GGQ8y.js"; languages.tcl = { "comment": /#.*/, "string": { pattern: /"(?:\\[^]|[^\\\n"])*"/g, greedy: true }, "variable": [ { pattern: /(\$)(?:(?:::)?(?:[a-zA-Z\d]+::)*\w+|\{[^}]+\})/, lookbehind: true }, { pattern: /(^[ ]*set[ ]+)(?:::)?(?:[a-zA-Z\d]+::)*\w+/m, lookbehind: true } ], "function": { pattern: /(^[ ]*proc[ ]+)\S+/m, lookbehind: true }, "builtin": { pattern: /(^[ ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b|\belse(?:if)?\b/m, lookbehind: true }, "scope": { pattern: /(^[ ]*)(?:global|upvar|variable)\b/m, lookbehind: true, alias: "constant" }, "keyword": { pattern: /(^[ ]*|\[)(?:Safe_Base|Tcl|after|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|l?append|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|l?set|lsort|mathfunc|mathop|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m, lookbehind: true }, "operator": /\*\*?|==|&&?|\|\|?|>>|<<|[!<>]=?|[~/%?^+-]|\b(?:eq|in|ne|ni)\b/, "punctuation": /[()[\]{}]/ }; //# sourceMappingURL=tcl.js.map