prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
17 lines (16 loc) • 417 B
JavaScript
import { a as languages } from "../../core-8vQkh0Rd.js";
//#region src/prism/languages/git.js
languages.git = {
"comment": /^#.*/m,
"deleted": /^[-–].*/m,
"inserted": /^\+.*/m,
"string": /(["'])(?:\\.|(?!\1)[^\\\n])*\1/,
"command": {
pattern: /^.*\$ git .*/m,
inside: { "parameter": /\s--?\w+/ }
},
"coord": /^@@.*@@$/m,
"commit-sha1": /^commit \w{40}$/m
};
//#endregion
//# sourceMappingURL=git.js.map