- Add full Telegram bot functionality with Z.AI API integration
- Implement 4 tools: Bash, FileEdit, WebSearch, Git
- Add 3 agents: Code Reviewer, Architect, DevOps Engineer
- Add 6 skills for common coding tasks
- Add systemd service file for 24/7 operation
- Add nginx configuration for HTTPS webhook
- Add comprehensive documentation
- Implement WebSocket server for real-time updates
- Add logging system with Winston
- Add environment validation
🤖 zCode CLI X - Agentic coder with Z.AI + Telegram integration
74 lines
1.3 KiB
JavaScript
74 lines
1.3 KiB
JavaScript
/*
|
|
Language: Awk
|
|
Author: Matthew Daly <matthewbdaly@gmail.com>
|
|
Website: https://www.gnu.org/software/gawk/manual/gawk.html
|
|
Description: language definition for Awk scripts
|
|
*/
|
|
|
|
/** @type LanguageFn */
|
|
function awk(hljs) {
|
|
const VARIABLE = {
|
|
className: 'variable',
|
|
variants: [
|
|
{
|
|
begin: /\$[\w\d#@][\w\d_]*/
|
|
},
|
|
{
|
|
begin: /\$\{(.*?)\}/
|
|
}
|
|
]
|
|
};
|
|
const KEYWORDS = 'BEGIN END if else while do for in break continue delete next nextfile function func exit|10';
|
|
const STRING = {
|
|
className: 'string',
|
|
contains: [hljs.BACKSLASH_ESCAPE],
|
|
variants: [
|
|
{
|
|
begin: /(u|b)?r?'''/,
|
|
end: /'''/,
|
|
relevance: 10
|
|
},
|
|
{
|
|
begin: /(u|b)?r?"""/,
|
|
end: /"""/,
|
|
relevance: 10
|
|
},
|
|
{
|
|
begin: /(u|r|ur)'/,
|
|
end: /'/,
|
|
relevance: 10
|
|
},
|
|
{
|
|
begin: /(u|r|ur)"/,
|
|
end: /"/,
|
|
relevance: 10
|
|
},
|
|
{
|
|
begin: /(b|br)'/,
|
|
end: /'/
|
|
},
|
|
{
|
|
begin: /(b|br)"/,
|
|
end: /"/
|
|
},
|
|
hljs.APOS_STRING_MODE,
|
|
hljs.QUOTE_STRING_MODE
|
|
]
|
|
};
|
|
return {
|
|
name: 'Awk',
|
|
keywords: {
|
|
keyword: KEYWORDS
|
|
},
|
|
contains: [
|
|
VARIABLE,
|
|
STRING,
|
|
hljs.REGEXP_MODE,
|
|
hljs.HASH_COMMENT_MODE,
|
|
hljs.NUMBER_MODE
|
|
]
|
|
};
|
|
}
|
|
|
|
module.exports = awk;
|