site/node_modules/shiki/dist/langs/fortran-fixed-form.mjs

10 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import fortran_free_form from './fortran-free-form.mjs';
const lang = Object.freeze({ "displayName": "Fortran (Fixed Form)", "fileTypes": ["f", "F", "f77", "F77", "for", "FOR"], "injections": { "source.fortran.fixed - ( string | comment )": { "patterns": [{ "include": "#line-header" }, { "include": "#line-end-comment" }] } }, "name": "fortran-fixed-form", "patterns": [{ "include": "#comments" }, { "include": "#line-header" }, { "include": "source.fortran.free" }], "repository": { "comments": { "patterns": [{ "begin": "^[cC\\*]", "end": "\\n", "name": "comment.line.fortran" }, { "begin": "^ *!", "end": "\\n", "name": "comment.line.fortran" }] }, "line-end-comment": { "begin": "(?<=^.{72})(?!\\n)", "end": "(?=\\n)", "name": "comment.line-end.fortran" }, "line-header": { "captures": { "1": { "name": "constant.numeric.fortran" }, "2": { "name": "keyword.line-continuation-operator.fortran" }, "3": { "name": "source.fortran.free" }, "4": { "name": "invalid.error.fortran" } }, "match": "^(?!\\s*[!#])(?:([ \\d]{5} )|( {5}.)|(\\t)|(.{1,5}))" } }, "scopeName": "source.fortran.fixed", "embeddedLangs": ["fortran-free-form"], "aliases": ["f", "for", "f77"] });
var fortranFixedForm = [
...fortran_free_form,
lang
];
export { fortranFixedForm as default };