diff options
| author | ruki <waruqi@gmail.com> | 2018-11-08 00:38:48 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2018-11-07 21:53:09 +0800 |
| commit | 26105034da4fcce7ac883c899d781f016559310d (patch) | |
| tree | c459a5dc4e3aa0972d9919033ece511ce76dd129 /node_modules/prismjs/components/prism-tcl.js | |
| parent | 2c77f00f1a7ecb6c8192f9c16d3b2001b254a107 (diff) | |
| download | xmake-docs-26105034da4fcce7ac883c899d781f016559310d.tar.gz xmake-docs-26105034da4fcce7ac883c899d781f016559310d.zip | |
switch to vuepress
Diffstat (limited to 'node_modules/prismjs/components/prism-tcl.js')
| -rw-r--r-- | node_modules/prismjs/components/prism-tcl.js | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/node_modules/prismjs/components/prism-tcl.js b/node_modules/prismjs/components/prism-tcl.js new file mode 100644 index 00000000..cfadab37 --- /dev/null +++ b/node_modules/prismjs/components/prism-tcl.js @@ -0,0 +1,46 @@ +Prism.languages.tcl = { + 'comment': { + pattern: /(^|[^\\])#.*/, + lookbehind: true + }, + 'string': { + pattern: /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/, + greedy: true + }, + 'variable': [ + { + pattern: /(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/, + lookbehind: true + }, + { + pattern: /(\$){[^}]+}/, + lookbehind: true + }, + { + pattern: /(^\s*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m, + lookbehind: true + } + ], + 'function': { + pattern: /(^\s*proc[ \t]+)[^\s]+/m, + lookbehind: true + }, + 'builtin': [ + { + pattern: /(^\s*)(?:proc|return|class|error|eval|exit|for|foreach|if|switch|while|break|continue)\b/m, + lookbehind: true + }, + /\b(?:elseif|else)\b/ + ], + 'scope': { + pattern: /(^\s*)(?:global|upvar|variable)\b/m, + lookbehind: true, + alias: 'constant' + }, + 'keyword': { + pattern: /(^\s*|\[)(?:after|append|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|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|Safe_Base|scan|seek|set|socket|source|split|string|subst|Tcl|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|wordBreak(?:After|Before)|test|vars)|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m, + lookbehind: true + }, + 'operator': /!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|ne|in|ni)\b/, + 'punctuation': /[{}()\[\]]/ +}; |
