site/node_modules/shiki/dist/langs/cobol.mjs

16 lines
40 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import sql from './sql.mjs';
import html from './html.mjs';
import java from './java.mjs';
import './javascript.mjs';
import './css.mjs';
const lang = Object.freeze({ "displayName": "COBOL", "fileTypes": ["ccp", "scbl", "cobol", "cbl", "cblle", "cblsrce", "cblcpy", "lks", "pdv", "cpy", "copybook", "cobcopy", "fd", "sel", "scb", "scbl", "sqlcblle", "cob", "dds", "def", "src", "ss", "wks", "bib", "pco"], "name": "cobol", "patterns": [{ "match": "(^[ \\*][ \\*][ \\*][ \\*][ \\*][ \\*])([dD]\\s.*$)", "name": "token.info-token.cobol" }, { "captures": { "1": { "name": "constant.numeric.cobol" }, "2": { "name": "comment.line.cobol.newpage" } }, "match": "(^[ \\*][ \\*][ \\*][ \\*][ \\*][ \\*])(\\/.*$)" }, { "captures": { "1": { "name": "constant.numeric.cobol" }, "2": { "name": "comment.line.cobol.fixed" } }, "match": "(^[ \\*][ \\*][ \\*][ \\*][ \\*][ \\*])(\\*.*$)" }, { "captures": { "1": { "name": "constant.numeric.cobol" }, "2": { "name": "comment.line.cobol.newpage" } }, "match": "(^[0-9\\s][0-9\\s][0-9\\s][0-9\\s][0-9\\s][0-9\\s])(\\/.*$)" }, { "match": "^[0-9\\s][0-9\\s][0-9\\s][0-9\\s][0-9\\s][0-9\\s]$", "name": "constant.numeric.cobol" }, { "captures": { "1": { "name": "constant.numeric.cobol" }, "2": { "name": "comment.line.cobol.fixed" } }, "match": "(^[0-9\\s][0-9\\s][0-9\\s][0-9\\s][0-9\\s][0-9\\s])(\\*.*$)" }, { "captures": { "1": { "name": "constant.cobol" }, "2": { "name": "comment.line.cobol.fixed" } }, "match": "(^[0-9a-zA-Z\\s\\$#%\\.@\\- ][0-9a-zA-Z\\s\\$#%\\.@\\- ][0-9a-zA-Z\\s\\$#%\\.@\\- ][0-9a-zA-Z\\s\\$#%\\.@\\- ][0-9a-zA-Z\\s\\$#%\\.@\\- ][0-9a-zA-Z\\s\\$#%\\.@\\- ])(\\*.*$)" }, { "captures": { "1": { "name": "constant.numeric.cobol" }, "2": { "name": "variable.other.constant" } }, "match": "^\\s+(78)\\s+([0-9a-zA-Z][a-zA-Z\\-0-9_]+)" }, { "captures": { "1": { "name": "constant.numeric.cobol" }, "2": { "name": "variable.other.constant" }, "3": { "name": "keyword.identifers.cobol" } }, "match": "^\\s+([0-9]+)\\s+([0-9a-zA-Z][a-zA-Z\\-0-9_]+)\\s+((?i:constant))" }, { "captures": { "1": { "name": "constant.cobol" }, "2": { "name": "comment.line.cobol.newpage" } }, "match": "(^[0-9a-zA-Z\\s\\$#%\\.@][0-9a-zA-Z\\s\\$#%\\.@][0-9a-zA-Z\\s\\$#%\\.@][0-9a-zA-Z\\s\\$#%\\.@][0-9a-zA-Z\\s\\$#%\\.@][0-9a-zA-Z\\s\\$#%\\.@])(\\/.*$)" }, { "match": "^\\*.*$", "name": "comment.line.cobol.fixed" }, { "captures": { "1": { "name": "keyword.control.directive.conditional.cobol" }, "2": { "name": "entity.name.function.preprocessor.cobol" }, "3": { "name": "entity.name.function.cobol" }, "4": { "name": "keyword.control.directive.conditional.cobol" } }, "match": "((?:^|\\s+)(?i:\\$set)\\s+)((?i:constant)\\s+)([0-9a-zA-Z][a-zA-Z\\-0-9]+\\s*)([a-zA-Z\\-0-9]*)" }, { "captures": { "1": { "name": "entity.name.function.preprocessor.cobol" }, "2": { "name": "storage.modifier.import.cobol" }, "3": { "name": "punctuation.begin.bracket.round.cobol" }, "4": { "name": "string.quoted.other.cobol" }, "5": { "name": "punctuation.end.bracket.round.cobol" } }, "match": "((?i:\\$\\s*set\\s+)(ilusing)(\\()(.*)(\\)))" }, { "captures": { "1": { "name": "entity.name.function.preprocessor.cobol" }, "2": { "name": "storage.modifier.import.cobol" }, "3": { "name": "punctuation.definition.string.begin.cobol" }, "4": { "name": "string.quoted.other.cobol" }, "5": { "name": "punctuation.definition.string.begin.cobol" } }, "match": '((?i:\\$\\s*set\\s+)(ilusing)(")(.*)("))' }, { "captures": { "1": { "name": "keyword.control.directive.conditional.cobol" }, "2": { "name": "entity.name.function.preprocessor.cobol" }, "3": { "name": "punctuation.definition.string.begin.cobol" }, "4": { "name": "string.quoted.other.cobol" }, "5": { "name": "punctuation.definition.string.begin.cobol" } }, "match": '((?i:\\$set))\\s+(\\w+)\\s*(")(\\w*)(")' }, { "captures": { "1": { "name": "keyword.control.directive.conditional.cobol" }, "2": { "name": "entity.name.function.preprocessor.cobol" }, "3": { "name": "punctuation.begin.bracket.round.cobol" }, "4": { "name": "string.quoted.other.cobol" }, "5": { "name": "punctuation.end.bracket.round.cobol" } }, "match": "((?i:\\$set))\\s+(\\w+)\\s*(\\()(.*)(\\))" }, { "captures": { "0": { "name": "keyword.control.directive.conditional.cobol" }, "1": { "name": "invalid.i
var cobol = [
...sql,
...html,
...java,
lang
];
export { cobol as default };