Restore node_modules to exact state from cli.js.map extraction: - Move .ignored/ and .ignored_* files back to original package paths - Remove pnpm symlinks (replaced by real source-map directories) - Update .gitignore: only exclude /dist/, .pnpm/, .bin/, .ignored* dirs - All package dist/ folders are now preserved as part of source-map files After clone, run `pnpm install` to get pnpm-managed symlinks for building. The committed node_modules contains the original TypeScript/JS source files as bundled in cli.js.
39 lines
713 B
JavaScript
39 lines
713 B
JavaScript
/*
|
||
Language: Backus–Naur Form
|
||
Website: https://en.wikipedia.org/wiki/Backus–Naur_form
|
||
Author: Oleg Efimov <efimovov@gmail.com>
|
||
*/
|
||
|
||
/** @type LanguageFn */
|
||
function bnf(hljs) {
|
||
return {
|
||
name: 'Backus–Naur Form',
|
||
contains: [
|
||
// Attribute
|
||
{
|
||
className: 'attribute',
|
||
begin: /</,
|
||
end: />/
|
||
},
|
||
// Specific
|
||
{
|
||
begin: /::=/,
|
||
end: /$/,
|
||
contains: [
|
||
{
|
||
begin: /</,
|
||
end: />/
|
||
},
|
||
// Common
|
||
hljs.C_LINE_COMMENT_MODE,
|
||
hljs.C_BLOCK_COMMENT_MODE,
|
||
hljs.APOS_STRING_MODE,
|
||
hljs.QUOTE_STRING_MODE
|
||
]
|
||
}
|
||
]
|
||
};
|
||
}
|
||
|
||
module.exports = bnf;
|