Files
zCode-CLI-X/~/.npm-cache/highlight.js@10.7.3@@@1/lib/languages/prolog.js
admin 875c7f9b91 feat: Complete zCode CLI X with Telegram bot integration
- 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
2026-05-05 09:01:26 +00:00

103 lines
1.6 KiB
JavaScript

/*
Language: Prolog
Description: Prolog is a general purpose logic programming language associated with artificial intelligence and computational linguistics.
Author: Raivo Laanemets <raivo@infdot.com>
Website: https://en.wikipedia.org/wiki/Prolog
*/
function prolog(hljs) {
const ATOM = {
begin: /[a-z][A-Za-z0-9_]*/,
relevance: 0
};
const VAR = {
className: 'symbol',
variants: [
{
begin: /[A-Z][a-zA-Z0-9_]*/
},
{
begin: /_[A-Za-z0-9_]*/
}
],
relevance: 0
};
const PARENTED = {
begin: /\(/,
end: /\)/,
relevance: 0
};
const LIST = {
begin: /\[/,
end: /\]/
};
const LINE_COMMENT = {
className: 'comment',
begin: /%/,
end: /$/,
contains: [ hljs.PHRASAL_WORDS_MODE ]
};
const BACKTICK_STRING = {
className: 'string',
begin: /`/,
end: /`/,
contains: [ hljs.BACKSLASH_ESCAPE ]
};
const CHAR_CODE = {
className: 'string', // 0'a etc.
begin: /0'(\\'|.)/
};
const SPACE_CODE = {
className: 'string',
begin: /0'\\s/ // 0'\s
};
const PRED_OP = { // relevance booster
begin: /:-/
};
const inner = [
ATOM,
VAR,
PARENTED,
PRED_OP,
LIST,
LINE_COMMENT,
hljs.C_BLOCK_COMMENT_MODE,
hljs.QUOTE_STRING_MODE,
hljs.APOS_STRING_MODE,
BACKTICK_STRING,
CHAR_CODE,
SPACE_CODE,
hljs.C_NUMBER_MODE
];
PARENTED.contains = inner;
LIST.contains = inner;
return {
name: 'Prolog',
contains: inner.concat([
{ // relevance booster
begin: /\.$/
}
])
};
}
module.exports = prolog;